show-branch: use argv_array for default arguments
[gitweb.git] / builtin / index-pack.c
index cf654df09b3734063f415b2b735f3062706f75a0..723fe8e11d1d494a82f50caac1434dba7682962c 100644 (file)
@@ -730,7 +730,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) {