]> git.ipfire.org Git - thirdparty/git.git/blobdiff - packfile.c
cache.h: add repository argument to oid_object_info
[thirdparty/git.git] / packfile.c
index d9914ba7232a0c6c82a09cf0272bffebc8e807f5..80c7fa734f896f22c3b39e28c7e28caf5222fb0c 100644 (file)
@@ -1114,7 +1114,7 @@ static int retry_bad_packed_offset(struct packed_git *p, off_t obj_offset)
                return OBJ_BAD;
        nth_packed_object_oid(&oid, p, revidx->nr);
        mark_bad_packed_object(p, oid.hash);
-       type = oid_object_info(&oid, NULL);
+       type = oid_object_info(the_repository, &oid, NULL);
        if (type <= OBJ_NONE)
                return OBJ_BAD;
        return type;