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

remote/clone bug: Stale tracking branch HEAD

From
TLTeemu Likonen <tlikonen@iki.fi>
Date
Mar 16, 2008, 17:21 UTC
Message-ID
<200803161921.49274.tlikonen@iki.fi>
In-Reply-To
<7v1w6bj7f9.fsf_-_@gitster.siamese.dyndns.org>
Junio C Hamano kirjoitti:
> We are going into 1.5.5-rc feature freeze tonight, and squashing
> these bugs now are of the highest priority.  Please keep the bug
> reports and fixes flowing.
I hope this bug won't find it's way to the release:
http://article.gmane.org/gmane.comp.version-control.git/77188

In short: After 'git clone' the command 'git remote show origin' shows a stale tracking branch HEAD:

  Stale tracking branch (use 'git remote prune')
      HEAD

'git remote prune origin' removes branch 'master'; you can see this with "git remote show origin":

  New remote branch (next fetch will store in remotes/origin)
      master

'git fetch' fetches 'master' again but the stale tracking branch HEAD appears again.

Previous: Junio C HamanoNext: Junio C Hamano
Message 4 of 16 in “git remote --mirror bug?”
  1. Joakim TjernlundMar 14, 2008
  2. Joakim TjernlundMar 15, 2008
  3. Re* git remote --mirror bug?Junio C Hamano, Mar 16, 2008
  4. remote/clone bug: Stale tracking branch HEADTeemu Likonen, Mar 16, 2008
  5. On fetch refspecs and wildcardsJunio C Hamano, Mar 16, 2008
  6. Junio C HamanoMar 16, 2008
  7. Daniel BarkalowMar 16, 2008
  8. Junio C HamanoMar 17, 2008
  9. Daniel BarkalowMar 17, 2008
  10. Johannes SchindelinMar 18, 2008
  11. Junio C HamanoMar 18, 2008
  12. Johannes SchindelinMar 19, 2008
  13. Allow "git remote --mirror" to mirror stashesJunio C Hamano, Mar 28, 2008
  14. Daniel BarkalowMar 28, 2008
  15. Junio C HamanoMar 31, 2008
  16. Daniel BarkalowMar 31, 2008

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.