From: Petr Baudis Date: Fri, 27 Apr 2007 18:00:12 GMT Subject: Re: [PATCH] [PATCH] git-mirror - exactly mirror another repository Message-ID: <20070427180012.GA4489@pasky.or.cz> In-Reply-To: <20070427043812.GX4489@pasky.or.cz> On Fri, Apr 27, 2007 at 06:38:12AM CEST, Petr Baudis wrote: > 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... Ok, so it seems that git-fetch already can do almost all of this; at least it seems that I'm far from being alone in not realizing it. :-) With the refspec +refs/heads/*:refs/heads/* and git remote prune (thanks, Shawn!), it seems that git-fetch can already do everything git-mirror tries to do, except updating the HEAD, but especially with the symref embedding in git-ls-remote that Junio proposed, even that should be fixable easily, right? -- Petr "Pasky" Baudis Stuff: http://pasky.or.cz/ Ever try. Ever fail. No matter. // Try again. Fail again. Fail better. -- Samuel Beckett