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

Re: [BUG?] push to mirrior interferes with parallel operations

From
Jeff King <peff@peff.net>
Date
Nov 18, 2010, 17:58 UTC
Message-ID
<20101118175810.GB26505@sigill.intra.peff.net>
In-Reply-To
<20101118175007.GA26505@sigill.intra.peff.net>
On Thu, Nov 18, 2010 at 12:50:08PM -0500, Jeff King wrote:
Show 8 quoted lines
> >     [remote "backup"]
> > 	url = /mnt/server/path/to/repo.git
> > 	fetch = +refs/*:refs/*
> > 	mirror = true
> 
> I think we don't want to be doing the opportunistic update in this case.
> But what is the correct rule for deciding not to do it? I can think of a
> few possibilities:

Thinking on this more, perhaps it really is the fetch refspec there that is the problem (as you initially suggested).

It seems to me there are really two kinds of mirrors: one where you will fetch everything from the remote, and one where you will push everything to the remote.

You have the latter kind, and the fetch refspec is just causing problems. Removing it would solve not only this issue, but also the fact that you would never want to run "git fetch backup", even accidentally, in your repo, as it would overwrite your local work.

So I think we need --mirror=push, or something similar.
-Peff
Previous: Jeff KingNext: Jan Hudec
Message 3 of 15 in “[BUG?] push to mirrior interferes with parallel operations”
  1. Jan HudecNov 18, 2010
  2. Jeff KingNov 18, 2010
  3. Jeff KingNov 18, 2010
  4. Does it make sense to pull from mirror? (Re: [BUG?] push to mirrior interferes with parallel operations)Jan Hudec, Nov 18, 2010
  5. Jeff KingNov 18, 2010
  6. Jan HudecNov 18, 2010
  7. Jeff KingNov 18, 2010
  8. Andreas SchwabNov 19, 2010
  9. Jeff KingNov 19, 2010
  10. Andreas SchwabNov 19, 2010
  11. Jeff KingNov 19, 2010
  12. Andreas SchwabNov 19, 2010
  13. Jeff KingNov 19, 2010
  14. Jonathan NiederNov 19, 2010
  15. Jeff KingNov 19, 2010

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.