Re: [PATCH] fetch-pack should not ask for a ref which is already there
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Sep 29, 2005, 19:28 UTC
- Message-ID
- <Pine.LNX.4.63.0509292124190.8668@wgmdd8.biozentrum.uni-wuerzburg.de>
- In-Reply-To
- <Pine.LNX.4.63.0509292058020.8413@wgmdd8.biozentrum.uni-wuerzburg.de>
Hi,
On Thu, 29 Sep 2005, Johannes Schindelin wrote:
Show 11 quoted lines
> Hi, > > On Thu, 29 Sep 2005, Linus Torvalds wrote: > > > On Thu, 29 Sep 2005, Johannes Schindelin wrote: > > > > > > With this patch, instead of blindly asking for every remote ref, > > > fetch-pack first looks in the local repository if that ref is > > > already there. > > > > No. This is WRONG.
Following up on the "I'd rather download twice than have a corrupt repository":
Wouldn't it make much more sense to add a flag which repairs an incomplete fetch? After all, not every day you fsck up a fetch, right? So, be nice to the server, the network and all the rest, in most cases, and be not so nice if you know something went wrong and you want to fix it.
Ciao, Dscho