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

Re: git remote --mirror bug?

From
JTJoakim Tjernlund <joakim.tjernlund@transmode.se>
Date
Mar 15, 2008, 18:08 UTC
Message-ID
<1205604534.7589.20.camel@gentoo-jocke.transmode.se>
In-Reply-To
<1205499956.7589.4.camel@gentoo-jocke.transmode.se>
On Fri, 2008-03-14 at 14:05 +0100, Joakim Tjernlund wrote:
Show 18 quoted lines
> Created a mirror like so:
>  git --bare init 
>  git remote add --mirror os2kernel /usr/local/src/os2kernel
> 
> Git fetch errors out
>  git fetch os2kernel 
> fatal: * refusing to create funny ref 'refs/stash' locally
> 
> Also 
> git remote show os2kernel 
> * remote os2kernel
>   URL: /usr/local/src/os2kernel
> Warning: unrecognized mapping in remotes.os2kernel.fetch: +refs/*:refs/*
> 
> git --version
> git version 1.5.4.3
> 
>  Jocke

Forgot to mention that clearing the stash with "git stash clear" deletes the refs/stash file and then above commands succeeds.

This is a rather harmless bug, but if you are running the fetch command in a cron job to backup your repo, it becomes more serious as one will not see the failure.

 Jocke
Previous: Joakim TjernlundNext: Junio C Hamano
Message 2 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.