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