[Top][All Lists]

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

[sr #110553] Allow fetch of specific commit hash from git://

Subject: [sr #110553] Allow fetch of specific commit hash from git://
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


                 Summary: Allow fetch of specific commit hash from
                 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



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

$ git fetch origin d271f868a8df9bbec29049d01e056481b7a1a263
error: Server does not allow request for unadvertised object

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://
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




Reply to this item at:


  Message sent via Savannah

reply via email to

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