Re: [PATCH 3/3] clone: always fetch remote HEAD
- From
Jeff King <peff@peff.net>
- Date
- Jun 6, 2011, 16:08 UTC
- Message-ID
- <20110606160845.GB11485@sigill.intra.peff.net>
- In-Reply-To
- <BANLkTimuU6fxS+CoL=rpQbN4vfRyMNOMJQ@mail.gmail.com>
On Fri, Jun 03, 2011 at 08:50:41PM -0500, Sverre Rabbelier wrote:
Show 7 quoted lines
> > 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