From: Junio C Hamano <gitster@pobox.com>
To: Chris Friesen <chris.friesen@genband.com>
Cc: git@vger.kernel.org
Subject: Re: strange behaviour, default branch on clone not as expected
Date: Mon, 03 Oct 2011 10:35:20 -0700 [thread overview]
Message-ID: <7vbotygeqv.fsf@alter.siamese.dyndns.org> (raw)
In-Reply-To: <4E89E7E1.4000907@genband.com> (Chris Friesen's message of "Mon, 03 Oct 2011 10:50:41 -0600")
Chris Friesen <chris.friesen@genband.com> 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.
prev parent reply other threads:[~2011-10-03 17:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-03 16:50 strange behaviour, default branch on clone not as expected Chris Friesen
2011-10-03 17:35 ` Junio C Hamano [this message]
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=7vbotygeqv.fsf@alter.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=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