convert has_sha1_file() callers to has_object_file()
[gitweb.git] / sha1-file.c
index 73e5cc6fa564a1aa45c0b23c79effcced54540b4..95186c019a1572cba6a428392c6256b3fd9bf088 100644 (file)
@@ -1372,7 +1372,7 @@ int pretend_object_file(void *buf, unsigned long len, enum object_type type,
        struct cached_object *co;
 
        hash_object_file(buf, len, type_name(type), oid);
-       if (has_sha1_file(oid->hash) || find_cached_object(oid))
+       if (has_object_file(oid) || find_cached_object(oid))
                return 0;
        ALLOC_GROW(cached_objects, cached_object_nr + 1, cached_object_alloc);
        co = &cached_objects[cached_object_nr++];