Git development
 help / color / mirror / Atom feed
From: Chris Friesen <chris.friesen@genband.com>
To: git@vger.kernel.org
Subject: strange behaviour, default branch on clone not as expected
Date: Mon, 03 Oct 2011 10:50:41 -0600	[thread overview]
Message-ID: <4E89E7E1.4000907@genband.com> (raw)

Hi,

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".

Something that might be relevent--currently both of these branches 
actually point to the same commit (Don't ask, it's a vendor thing.) thus 
"refs/heads/atca6900-ecgl" and "refs/heads/ncgl" have the same contents. 
  I find it suspicious that atca6900-ecgl is alphabetically before ncgl 
and that they point to the same commit ID...but I don't know how it 
works internally so this may be just coincidence.

Any ideas what's going on?  I'm using git 1.7.3.2 if it makes any 
difference.

Chris



-- 
Chris Friesen
Software Developer
GENBAND
chris.friesen@genband.com
www.genband.com

             reply	other threads:[~2011-10-03 16:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-03 16:50 Chris Friesen [this message]
2011-10-03 17:35 ` strange behaviour, default branch on clone not as expected Junio C Hamano

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4E89E7E1.4000907@genband.com \
    --to=chris.friesen@genband.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox