Re: git clone of empty repositories doesn't preserve hash
- From
Adam Majer <adamm@zombino.com>
- Date
- Apr 5, 2023, 19:47 UTC
- Message-ID
- <d04c430e-b609-b0a1-fd0f-0f3734d5c3b1@zombino.com>
- In-Reply-To
- <xmqqr0syw3pe.fsf@gitster.g>
On 4/5/23 21:04, Junio C Hamano wrote:
> Does such a clone copy the name of the primary branch from the > remote repository to the newly created repository?
Yes it does.
# git init -b maestro --object-format=sha256 a # git clone a b # cat b/.git/HEAD ref: refs/heads/maestro
- Adam