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

Re: [COGITO PATCH] mirroring repositories

From
Petr Baudis <pasky@ucw.cz>
Date
Jun 2, 2005, 21:24 UTC
Message-ID
<20050602212436.GI32189@pasky.ji.cz>
In-Reply-To
<1117402883.8536.5.camel@localhost.localdomain>

Dear diary, on Sun, May 29, 2005 at 11:41:23PM CEST, I got a letter where Michael Frank <msfrank@syntaxjockey.com> told me that...

Show 9 quoted lines
> The attached patch adds the two programs cg-mirror-add and
> cg-mirror-sync.  Say you do all of your work on your laptop and you want
> to make a mirror of your repository available to the public.  You
> specify the location of the mirror with cg-mirror-add:
> 
> $ cg-mirror-add scp://my.server:/var/www/repos/project.git
> 
> which locally creates the file .git/mirrors.  Whenever you want to
> upload your changes, you run cg-mirror-sync.

FWIW, I think this is the wrong approach - full-blown pushing makes much more sense since it's a full superset of mirroring and it's more universal, and not *that* more complicated to do (basically just the HEAD stuff - and I think the race conditions around that don't matter that much in the real life if you take some basic crude protections).

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
C++: an octopus made by nailing extra legs onto a dog. -- Steve Taylor
Previous: Michael Frank
Message 2 of 2 in “mirroring repositories”
  1. mirroring repositoriesMichael Frank, May 29, 2005
  2. Petr BaudisJun 2, 2005

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.