[PATCH] cgit: Fix guessing default branch
Aiden Woodruff
aiden at aidenw.net
Fri Feb 27 16:47:06 UTC 2026
Hi Baptiste,
On 2/27/26 10:51 AM, Baptiste Jonglez wrote:
> I guess the internal format for HEAD has changed at some point, so it
> needs to be taken into account when parsing it in cgit.
Just to add some information, the HEAD format hasn't changed since that
line was added.
Compare the git user manual blame:
https://gitlab.com/git-scm/git/-/blame/HEAD/Documentation/user-manual.adoc#L289
And the cgit blame:
https://git.zx2c4.com/cgit/blame/cgit.c#n499
--
Aiden Woodruff
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_0xE954F892957A1764.asc
Type: application/pgp-keys
Size: 855 bytes
Desc: OpenPGP public key
URL: <http://lists.zx2c4.com/pipermail/cgit/attachments/20260227/65442d23/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 236 bytes
Desc: OpenPGP digital signature
URL: <http://lists.zx2c4.com/pipermail/cgit/attachments/20260227/65442d23/attachment-0001.sig>
More information about the CGit
mailing list