git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Remote's 'currently active branch' not HEAD?

From
MSMichael Schubert <mschub@elegosoft.com>
Date
Sep 3, 2013, 13:02 UTC
Message-ID
<20130903130250.GB20459@pc.elego.de>
In-Reply-To
<20130903123733.GR12966@inner.h.apk.li>
On Tue, Sep 03, 2013 at 02:37:33PM +0200, Andreas Krey wrote:
Show 9 quoted lines
> On Tue, 03 Sep 2013 13:48:31 +0000, Andreas Krey wrote:
> ...
> > 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:
> 
> Ouch, it looks like 'git clone' doesn't actually know
> the 'current remote branch' but picks one of those that
> happen to have the HEAD *commit* as their tip.
Yes, it picks the first of those:
http://thread.gmane.org/gmane.comp.version-control.git/168144
> At least the 'git clone' doc would be misleading then.
Previous: Andreas KreyNext: Andreas Krey
Message 4 of 8 in “Remote's 'currently active branch' not HEAD?”
  1. Andreas KreySep 3, 2013
  2. Andreas KreySep 3, 2013
  3. Andreas KreySep 3, 2013
  4. Michael SchubertSep 3, 2013
  5. Andreas KreySep 3, 2013
  6. Junio C HamanoSep 3, 2013
  7. Andreas KreySep 6, 2013
  8. Andreas KreySep 6, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.