login
Header Space

 
 

Re: [PATCH] fetch-pack should not ask for a ref which is already there

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Johannes Schindelin <Johannes.Schindelin@...>
Cc: Git Mailing List <git@...>
Date: Thursday, September 29, 2005 - 2:26 pm

On Thu, 29 Sep 2005, Johannes Schindelin wrote:

No. This is WRONG.

It may seem like a sane thing to do, but it is very very horribly broken.

The fact is, if an earlier fetch was interrupted, or if you've used things
like rsync, you may have disconnected objects in your object store. The 
fact that you have a particular commit object is _not_ a guarantee that 
you have everything that leads up to it.

The "fetch" semantics are simple: we only write out new refs _after_ we've 
fetched all the objects that point to them. That means that while we 
cannot trust a "oh, I already have this commit, let's skip it", we _can_ 
trust "oh, I already have these refs, let's skip them".

So please do _not_ add logic like this to git-fetch. I'd _much_ rather
fetch some objects twice than end up with a corrupt repository.

		Linus
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] fetch-pack should not ask for a ref which is already..., Johannes Schindelin, (Wed Sep 28, 7:49 pm)
Re: [PATCH] fetch-pack should not ask for a ref which is alr..., Linus Torvalds, (Thu Sep 29, 2:26 pm)
Re: [PATCH] fetch-pack should not ask for a ref which is alr..., Johannes Schindelin, (Thu Sep 29, 3:08 pm)
Re: [PATCH] fetch-pack should not ask for a ref which is alr..., Johannes Schindelin, (Thu Sep 29, 3:28 pm)
Re: [PATCH] fetch-pack should not ask for a ref which is alr..., Johannes Schindelin, (Fri Sep 30, 8:20 am)
Re: [PATCH] fetch-pack should not ask for a ref which is alr..., Johannes Schindelin, (Thu Sep 29, 4:42 am)
Re: [PATCH] fetch-pack should not ask for a ref which is alr..., Johannes Schindelin, (Thu Sep 29, 5:30 am)
speck-geostationary