sha1_file: refactor has_sha1_file_with_flags
[gitweb.git] / builtin / index-pack.c
index 04b9dcaf0f4ca90712cbb85cace521e226194f3b..587bc80c964f6d303822f7c42043d14638d30dfb 100644 (file)
@@ -794,7 +794,8 @@ static void sha1_object(const void *data, struct object_entry *obj_entry,
 
        if (startup_info->have_repository) {
                read_lock();
-               collision_test_needed = has_sha1_file_with_flags(oid->hash, HAS_SHA1_QUICK);
+               collision_test_needed =
+                       has_sha1_file_with_flags(oid->hash, OBJECT_INFO_QUICK);
                read_unlock();
        }