Fwd: Bug when cloning a repository with a default branch called HEAD

2 messages, 2 authors, 2021-05-31 · open the first message on its own page

Fwd: Bug when cloning a repository with a default branch called HEAD

From: Björn Kautler <hidden>
Date: 2021-05-31 20:40:41

---------- Forwarded message ---------
Von: Björn Kautler [off-list ref]
Date: Mo., 31. Mai 2021 um 22:24 Uhr
Subject: Re: Bug when cloning a repository with a default branch called HEAD
To: asymptosis <redacted>


It happens the same no matter whether on Windows or Linux.
I now also have a reproduction recipe on how to get into that state.
- Create the `whelk` repository with standard settings, nothing for
default branch or anything is necessary
- Execute this: git clone https://github.com/seveas/whelk.git
whelk-src && git -C whelk-src remote add gitlab git@gitlab.com:<your
namespace>/whelk.git && git -C whelk-src push gitlab
refs/remotes/origin/*:refs/heads/* && git clone
git@gitlab.com:git-spindle-test-vampire-1/whelk.git && git -C whelk
fetch

Cheers
Björn

RE: Bug when cloning a repository with a default branch called HEAD

From: Randall S. Becker <hidden>
Date: 2021-05-31 20:46:03

-----Original Message-----
From: <redacted>
On May 31, 2021 4:38 PM, Björn Kautler wrote:
Subject: Re: Bug when cloning a repository with a default branch called HEAD
It happens the same no matter whether on Windows or Linux.
I now also have a reproduction recipe on how to get into that state.
- Create the `whelk` repository with standard settings, nothing for default branch or anything is necessary
- Execute this: git clone https://github.com/seveas/whelk.git
whelk-src && git -C whelk-src remote add gitlab git@gitlab.com:<your
namespace>/whelk.git && git -C whelk-src push gitlab
refs/remotes/origin/*:refs/heads/* && git clone git@gitlab.com:git-spindle-test-vampire-1/whelk.git && git -C whelk fetch
According to GitHub, the default branch for this repo is "main" not "HEAD". AFAIK, HEAD is a reserved ref in git and I don't think this would or should work.

Just saying.
Randall
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help