From: Shawn Pearce Date: Tue, 16 Oct 2012 02:09:52 GMT Subject: Re: push race Message-ID: In-Reply-To: <20121015185608.GC31658@sigill.intra.peff.net> On Mon, Oct 15, 2012 at 11:56 AM, Jeff King wrote: > Right. The only thing that needs locking is the refs, because the object > database is add-only for normal operations, and by definition collisions > mean you have the same content (or are astronomically unlucky, but your > consolation prize is that you can write a paper on how you found a sha1 > collision). Its worth nothing that a SHA-1 collision can be identified at the server because the server performs a byte-for-byte compare of both copies of the object to make sure they match exactly in every way. Its not fast, but its safe. :-)