Merge branch 'jk/index-pack-reduce-recheck'
Disable "have we lost a race with competing repack?" check while receiving a huge object transfer that runs index-pack. * jk/index-pack-reduce-recheck: index-pack: avoid excessive re-reading of pack directory
This commit is contained in:
@ -786,7 +786,7 @@ static void sha1_object(const void *data, struct object_entry *obj_entry,
|
||||
assert(data || obj_entry);
|
||||
|
||||
read_lock();
|
||||
collision_test_needed = has_sha1_file(sha1);
|
||||
collision_test_needed = has_sha1_file_with_flags(sha1, HAS_SHA1_QUICK);
|
||||
read_unlock();
|
||||
|
||||
if (collision_test_needed && !data) {
|
||||
|
Reference in New Issue
Block a user