[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[sr #110553] Allow fetch of specific commit hash from git://git.sv.gnu.o
From: |
INVALID.NOREPLY |
Subject: |
[sr #110553] Allow fetch of specific commit hash from git://git.sv.gnu.org |
Date: |
Thu, 21 Oct 2021 02:33:23 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:93.0) Gecko/20100101 Firefox/93.0 |
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/
- [sr #110553] Allow fetch of specific commit hash from git://git.sv.gnu.org,
INVALID.NOREPLY <=