| commit | 1421c5f274a10f93ce5e8b51c0e1351905f84f4e | [log] [tgz] |
|---|---|---|
| author | Linus Torvalds <torvalds@linux-foundation.org> | Mon Jun 16 17:17:10 2008 -0700 |
| committer | Junio C Hamano <gitster@pobox.com> | Mon Jun 16 21:46:47 2008 -0700 |
| tree | 03119b3cbab0932a2692bf86d6d6cdab69797011 | |
| parent | 328a4750b155df9de29cac007c74e2412d244620 [diff] |
write_loose_object: don't bother trying to read an old object Before even calling this, all callers have done a "has_sha1_file(sha1)" or "has_loose_object(sha1)" check, so there is no point in doing a second check. If something races with us on object creation, we handle that in the final link() that moves it to the right place. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>