[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] bootstrap: When a commit hash is specified, do a shallow fet

From: Bruno Haible
Subject: Re: [PATCH] bootstrap: When a commit hash is specified, do a shallow fetch if possible
Date: Sat, 23 Oct 2021 00:20:32 +0200

Hi Glenn,

> The gnulib sources are large but more importantly have lots of changes. So
> initial checkout of the repository can take a long time when network or
> cpu resources are limited. The later is especially acute in a non-KVM QEMU
> virtual machine (which can take 40+ minutes compared to <30 seconds with
> this change[1]). The problem is specific to bootstrap configurations using
> a specific gnulib revision specified by commit hash.

The change looks reasonable, but is hardly self-explanatory. Could you please
add parts of the commit message to comments in the code? So that one does
not need to look in the git history in order to understand the code.

Also, I would expect that the GNULIB_REVISION environment variable is not
so frequently used, and that the more frequent use is with git submodules.
Is it possible to apply the same trick to the git submodules case? Or does
the use of submodules always require a deep clone?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]