{"thread":{"id":"28561","subject":"strange behaviour, default branch on clone not as expected","startedAt":"2011-10-03T16:50:41Z","lastAt":"2011-10-03T17:35:20Z","messageCount":2,"participants":["Chris Friesen","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"176751","messageId":"4E89E7E1.4000907@genband.com","threadId":"28561","inReplyTo":null,"subject":"strange behaviour, default branch on clone not as expected","fromName":"Chris Friesen","fromEmail":"chris.friesen@genband.com","sentAt":"2011-10-03T16:50:41Z","receivedAt":"2011-10-03T16:50:41Z","isPatch":false,"sender":{"key":"chris.friesen@genband.com","avatar":null},"body":"Hi,\n\nI have a bare repository on a server with (among others) branches \n\"atca6900-ecgl\" and \"ncgl\".  The \"HEAD\" file in the bare repository \ncontains \"ref: refs/heads/ncgl\" and \"git branch\" in the bare repository \nshows an asterisk beside \"ncgl\".\n\nHowever, if I clone the bare repository I get \"atca-6900-ecgl\" as the \ndefault branch.  \".git/HEAD\" contains \"ref: refs/heads/atca6900-ecgl\".\n\nSomething that might be relevent--currently both of these branches \nactually point to the same commit (Don't ask, it's a vendor thing.) thus \n\"refs/heads/atca6900-ecgl\" and \"refs/heads/ncgl\" have the same contents. \n  I find it suspicious that atca6900-ecgl is alphabetically before ncgl \nand that they point to the same commit ID...but I don't know how it \nworks internally so this may be just coincidence.\n\nAny ideas what's going on?  I'm using git 1.7.3.2 if it makes any \ndifference.\n\nChris\n\n\n\n-- \nChris Friesen\nSoftware Developer\nGENBAND\nchris.friesen@genband.com\nwww.genband.com\n"},{"id":"176757","messageId":"7vbotygeqv.fsf@alter.siamese.dyndns.org","threadId":"28561","inReplyTo":"4E89E7E1.4000907@genband.com","subject":"Re: strange behaviour, default branch on clone not as expected","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2011-10-03T17:35:20Z","receivedAt":"2011-10-03T17:35:20Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Chris Friesen <chris.friesen@genband.com> writes:\n\n> I have a bare repository on a server with (among others) branches\n> \"atca6900-ecgl\" and \"ncgl\".  The \"HEAD\" file in the bare repository\n> contains \"ref: refs/heads/ncgl\" and \"git branch\" in the bare\n> repository shows an asterisk beside \"ncgl\".\n>\n> However, if I clone the bare repository I get \"atca-6900-ecgl\" as the\n> default branch.  \".git/HEAD\" contains \"ref: refs/heads/atca6900-ecgl\".\n\nIf ncgl is at the same commit as the acta one, this is expected. The\nprotocol does not carry enough information to tell which branch HEAD\npoints at.\n"}]}