Thread (12 messages) flat view 12 messages, 5 authors, 2016-06-15

Re: Starting to think about sha-256?

From: Linus Torvalds <torvalds@osdl.org>
Date: 2016-06-15 22:42:38


On Tue, 29 Aug 2006, Johannes Schindelin wrote:
quoted
Nope. If it has the same SHA1, it means that when we receive the object 
from the other end, we will _not_ overwrite the object we already have.
The only notable exception I can think of: "git fetch -k". If you then try 
to retrieve the bogus object, it will return the one of whichever pack was 
returned first be readdir(). (If I read the source correctly.)
Good point.

I didn't even think of "-k", since I mentally put that in the "initial 
clone usage only" category, but yeah, if people use it for incremental 
updates too, that could indeed cause ambiguity in which object to use when 
the other end does something bad.

		Linus
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help