Re: AW: git log on bare repository fails if the default branch is not called master
- From
- Ian Molton <git-ian@mnementh.co.uk>
- Date
- Jun 3, 2022, 18:06 UTC
- Message-ID
- <9df6c37e-4c43-7697-0562-c49d4fa5b38f@mnementh.co.uk>
- In-Reply-To
- <48bcd99afbca4c73b938c3ed4e104c64@atlas-elektronik.com>
On 03/06/2022 15:40, stefan.naewe@atlas-elektronik.com wrote:
> I bet the HEAD file in your bare repository points to refs/heads/master...
Possibly, but why? the only thiong that ever happened to was that I pushed my code into it, from a repo that used mainline (not master).
Why does a bare repo even have a HEAD file? (genuinely curious). It seems like it'd be best to create it when it's first pushed to? then it'd match whatever is used in the pushing repo...
-Ian