Fwd: Bug when cloning a repository with a default branch called HEAD
- From
Björn Kautler <bjoern@kautler.net>
- Date
- May 31, 2021, 20:38 UTC
- Message-ID
- <CAKChYSpGJ8WHsYRgYL9M8rr7Dp_SLrUuRsTONqNO3CTnX2DQ_Q@mail.gmail.com>
- In-Reply-To
- <CAKChYSrQ3u3yH0+8Fwj-84cnAFGvuSEPHx+5Mcy8Ys4sXcN14A@mail.gmail.com>
---------- Forwarded message --------- Von: Björn Kautler <Bjoern@kautler.net> Date: Mo., 31. Mai 2021 um 22:24 Uhr Subject: Re: Bug when cloning a repository with a default branch called HEAD To: asymptosis <asymptosis@posteo.net>
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