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

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

From
A Large Angry SCM <gitzilla@gmail.com>
Date
Apr 27, 2007, 02:47 UTC
Message-ID
<4631642B.2010501@gmail.com>
In-Reply-To
<20070427021505.1740.58136.stgit@rover>
Petr Baudis wrote:
Show 20 quoted lines
> Sometimes its handy to be able to efficiently backup or mirror one
> Git repository to another Git repository by employing the native
> Git object transfer protocol.  But when mirroring or backing up a
> repository you really want:
> 
>   1) Every object in the source to go to the mirror.
>   2) Every ref in the source to go to the mirror.
>   3) Any ref removed from the source to be removed from the mirror.
> 
> and since git-fetch doesn't do 2 and 3, here's a tool that does.
> 
> This is based on Shawn Pearce's patch from 25 Sep 2006, updated to take
> Junio's and Sergey's review into account, to use few newer pieces of Git
> infrastructure and with few trivial tweaks. The repacking part was dropped
> since git-fetch does that on its own now.
> 
> I actually still would kind of prefer this to be a git-fetch's feature but
> the general mood seems to be to have this as a separate command and I can't
> say I care at all.
> 

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.

Previous: Petr BaudisNext: Petr Baudis
Message 3 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.