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, 04:38 UTC
Message-ID
<20070427043812.GX4489@pasky.or.cz>
In-Reply-To
<4631642B.2010501@gmail.com>
On Fri, Apr 27, 2007 at 04:47:07AM CEST, A Large Angry SCM wrote:
> It would be nice if this had an option to not mirror HEAD and another 
> option to map the refs from (/ref/[^/])/(.*) to /ref/\1/${repo_path}/\2.

When I try to guess why you want this, I think this is just saying "it would be nice if this was part of git-fetch and if git-fetch actually did this automagically by default". Because when you clone a given repository with all its branches, you are naturally interested not only in the snapshot of the branch set at the point of the clone but more likely just want "anytime whatever branches are over there". So when fetching a * refspec it's natural to look for new branches and fetch them too; and if you do that, it should be pretty easy to also (probably optionally) remove stale branches.

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...

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
Ever try. Ever fail. No matter. // Try again. Fail again. Fail better.
		-- Samuel Beckett
Previous: A Large Angry SCMNext: Petr Baudis
Message 4 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.