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

Re: [PATCH] [PATCH] git-mirror - exactly mirror another repository

From
Petr Baudis <pasky@suse.cz>
Date
Apr 27, 2007, 18:00 UTC
Message-ID
<20070427180012.GA4489@pasky.or.cz>
In-Reply-To
<20070427043812.GX4489@pasky.or.cz>
On Fri, Apr 27, 2007 at 06:38:12AM CEST, Petr Baudis wrote:
> But heck, maybe with all the nifty fetch--tools git-fetch is already
> doing it. But there seems to be basically zero documentation, the code
> is not that easy to follow and it's too late for me to be decyphering it
> now... 

Ok, so it seems that git-fetch already can do almost all of this; at least it seems that I'm far from being alone in not realizing it. :-)

With the refspec +refs/heads/*:refs/heads/* and git remote prune (thanks, Shawn!), it seems that git-fetch can already do everything git-mirror tries to do, except updating the HEAD, but especially with the symref embedding in git-ls-remote that Junio proposed, even that should be fixable easily, right?

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
Ever try. Ever fail. No matter. // Try again. Fail again. Fail better.
		-- Samuel Beckett
Previous: Petr BaudisNext: Johannes Schindelin
Message 5 of 7 in “git-mirror - exactly mirror another repository”
  1. [PATCH] git-mirror - exactly mirror another repositoryPetr Baudis, Apr 27, 2007
  2. Petr BaudisApr 27, 2007
  3. A Large Angry SCMApr 27, 2007
  4. Petr BaudisApr 27, 2007
  5. Petr BaudisApr 27, 2007
  6. Johannes SchindelinApr 27, 2007
  7. Andy WhitcroftApr 27, 2007

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.