GNU bug report logs -
#49252
[PATCH] Channels defaulting to HEAD instead of ‘master’
Previous Next
Full log
View this message in rfc822 format
Ludovic Courtès writes:
> Kyle Meyer <kyle <at> kyleam.com> skribis:
[...]
>>
>> Hmm, it looks like it's there:
>>
>> $ git ls-remote https://git.savannah.gnu.org/git/guix.git | grep HEAD
>> e499500730de23fd54ae63696a725d4b90a406d7 HEAD
>>
>> $ git clone https://git.savannah.gnu.org/git/guix.git && cd guix
>> $ git for-each-ref refs/remotes/origin | grep HEAD
>> e499500730de23fd54ae63696a725d4b90a406d7 commit refs/remotes/origin/HEAD
>> $ git name-rev refs/remotes/origin/HEAD
>> refs/remotes/origin/HEAD master
>
> OK, so something else must be at fault.
>
> Ideas?
My understanding is that the clone is happening through guile-git, which
uses libgit2. In libgit2's v1.1.0 release notes, I see "[t]he
refs/remotes/origin/HEAD file will be created at clone time to point to
the origin's default branch". So my current guess is that this clone
was made before guix's libgit2 was 1.1.0.
Does that sound possible (i.e. this clone is from before 2020-12-ish)?
Do you still see the "reference 'refs/remotes/origin/HEAD' not found"
failure if you force a fresh clone?
This bug report was last modified 3 years and 307 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.