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

Re: [PATCH] Introduce git-mirror, a tool for exactly mirroring another repository.

From
Shawn Pearce <spearce@spearce.org>
Date
Oct 31, 2006, 14:55 UTC
Message-ID
<20061031145554.GA23007@spearce.org>
In-Reply-To
<20061031174225.3c7c1e77.vsu@altlinux.ru>
Sergey Vlasov <vsu@altlinux.ru> wrote:
Show 15 quoted lines
> On Mon, 25 Sep 2006 00:46:41 -0400 Shawn Pearce wrote:
> 
> > 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.
> >   4) Automatically repack and prune the mirror when necessary.
> >
> > and since git-fetch doesn't do 2, 3, and 4 here's a tool that does.
> 
> Is this patch forgotten, abandoned or what?
Its waiting around for someone to clean it up.  :-)

Junio didn't accept it as there were a number of issues that he identified in the patch. I still have them in my inbox but have not had time to go back and fix them. Since I haven't actually had a real need for git-mirror it has been low on my priority list of "git things to do".

Your message pointed out a number of issues with the current version that would be worth fixing before accepting it into git.git. I agree with many of them, especially about the direct ref manipulation. git-mirror was written before the Linus packed ref stuff came along, so git-update-ref didn't have a -d option at the time... otherwise I would have used it.

Previous: Sergey VlasovNext: Junio C Hamano
Message 5 of 10 in “Introduce git-mirror, a tool for exactly mirroring another repository.”
  1. Introduce git-mirror, a tool for exactly mirroring another repository.Shawn Pearce, Sep 25, 2006
  2. Junio C HamanoSep 26, 2006
  3. Shawn PearceSep 26, 2006
  4. Sergey VlasovOct 31, 2006
  5. Shawn PearceOct 31, 2006
  6. Junio C HamanoNov 1, 2006
  7. Jakub NarebskiNov 1, 2006
  8. Sergey VlasovNov 1, 2006
  9. Jakub NarebskiNov 1, 2006
  10. Junio C HamanoNov 1, 2006

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.