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

Does it make sense to pull from mirror? (Re: [BUG?] push to mirrior interferes with parallel operations)

From
JHJan Hudec <bulb@ucw.cz>
Date
Nov 18, 2010, 18:49 UTC
Message-ID
<20101118184904.GO3693@efreet.light.src>
In-Reply-To
<20101118175810.GB26505@sigill.intra.peff.net>
On Thu, Nov 18, 2010 at 12:58:11 -0500, Jeff King wrote:
Show 8 quoted lines
> 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.
Accidentally did it already. Fortunately it just died with something like
    "refusing to pull to checked out branch of non-bare repository"
and did nothing at all.
 
> So I think we need --mirror=push, or something similar.

Does it *ever* make sense to have a non-bare pull mirror. I think it does not.

-- 
						 Jan 'Bulb' Hudec <bulb@ucw.cz>
Previous: Jeff KingNext: Jeff King
Message 4 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.