Re: strange behaviour, default branch on clone not as expected

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Chris Friesen <chris.friesen@xxxxxxxxxxx> writes:

> I have a bare repository on a server with (among others) branches
> "atca6900-ecgl" and "ncgl".  The "HEAD" file in the bare repository
> contains "ref: refs/heads/ncgl" and "git branch" in the bare
> repository shows an asterisk beside "ncgl".
>
> However, if I clone the bare repository I get "atca-6900-ecgl" as the
> default branch.  ".git/HEAD" contains "ref: refs/heads/atca6900-ecgl".

If ncgl is at the same commit as the acta one, this is expected. The
protocol does not carry enough information to tell which branch HEAD
points at.

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]