From: Jeff King Date: Mon, 06 Jun 2011 16:08:45 GMT Subject: Re: [PATCH 3/3] clone: always fetch remote HEAD Message-ID: <20110606160845.GB11485@sigill.intra.peff.net> In-Reply-To: On Fri, Jun 03, 2011 at 08:50:41PM -0500, Sverre Rabbelier wrote: > > Does that make sense? If so, then I think the right fix is for testgit > > ti ignore all imports after the first one (since the first one will have > > done all available refs). And the patch is: > > We can do that yes, although it would be even better if we could make > testgit implement importing only a limited set of branches, as I > assume that will be common. Nonetheless, this will do for now I think. Yeah, I think that is a better model for showing people who are trying to write their own helpers. We just have to read each "import" line, saving the list of refs; when git disconnects from us, we know there are no more, and we can start fast-import with the correct arguments. -Peff