git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andreas Krey <a.krey@gmx.de>
To: Git Mailing List <git@vger.kernel.org>
Subject: Re: Remote's 'currently active branch' not HEAD?
Date: Tue, 3 Sep 2013 13:48:31 +0200	[thread overview]
Message-ID: <20130903114831.GA8559@inner.h.apk.li> (raw)
In-Reply-To: <20130903104652.GA5813@inner.h.apk.li>

On Tue, 03 Sep 2013 12:46:52 +0000, Andreas Krey wrote:
...
> I have a strange behaviour from a bare repo I inherited;
> when I clone from that one (ssh) the branch checked out
> is *not* the one referenced in HEAD in the remote repo,

I now have a sample repo that reproduces this behaviour.
Unpack tar file, clone, see clone having 'wrong' branch
checked out, apparently independent of the transport:

  wget http://abox.h.apk.li/clot.tar
  tar xvf clot.tar
  (cd clot && git branch -a)  # Current branch is 'r1'
  git clone clot c1
  (cd c1 && git branch -a)    # Current branch is 'aa'?

Same with git v1.7.1.x and v1.8.4.

Andreas

-- 
"Totally trivial. Famous last words."
From: Linus Torvalds <torvalds@*.org>
Date: Fri, 22 Jan 2010 07:29:21 -0800

  reply	other threads:[~2013-09-03 11:48 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-03 10:46 Remote's 'currently active branch' not HEAD? Andreas Krey
2013-09-03 11:48 ` Andreas Krey [this message]
2013-09-03 12:37   ` Andreas Krey
2013-09-03 13:02     ` Michael Schubert
2013-09-03 13:50       ` Andreas Krey
2013-09-03 15:33         ` Junio C Hamano
2013-09-06 11:41           ` Andreas Krey
2013-09-06 12:54             ` Andreas Krey

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=20130903114831.GA8559@inner.h.apk.li \
    --to=a.krey@gmx.de \
    --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;
as well as URLs for NNTP newsgroup(s).