URL: <https://savannah.nongnu.org/support/?110553>
Summary: Allow fetch of specific commit hash from git://git.sv.gnu.org Project: Savannah Administration Submitted by: g10 Submitted on: Thu 21 Oct 2021 06:33:22 AM UTC Category: None Priority: 5 - Normal Severity: 3 - Normal Status: None Assigned to: None Originator Email: Operating System: None Open/Closed: Open Discussion Lock: Any _______________________________________________________ Details: GRUB2 uses the gnulib project at a specific commit to build. It uses the bootstrap script from the gnulib project to clone the gnulib git repo. Since the GRUB2 bootstrap script configured to use gnulib at a particular commit, it can not use clone (clone doesn't support commit hashes, that I know of), so it must download the whole repository and then checkout that commit. This is problematic on slower systems (eg. a VM) where the clone can take more than 15 minutes (gnulib has a lot of commits). After reading this SO comment[1], I see there's a much faster way to checkout just a commit. However, when I try to fetch using the commit hash the server returns an error: $ git fetch origin d271f868a8df9bbec29049d01e056481b7a1a263 error: Server does not allow request for unadvertised object d271f868a8df9bbec29049d01e056481b7a1a263 I've tried this with the github mirror of gnulib, which does support this and it is indeed much faster. I believe there is a server side configuration that git://git.sv.gnu.org maintainers could turn on to enable this feature. Are there any objections to having this enabled? I'd like to get a patch submitted to gnulib to enable this in the bootstrap script so this can be of use to other projects using bootstrap. Thanks [1] https://stackoverflow.com/a/3489576/2108011 _______________________________________________________ Reply to this item at: <https://savannah.nongnu.org/support/?110553> _______________________________________________ Message sent via Savannah https://savannah.nongnu.org/