]> git.ipfire.org Git - thirdparty/git.git/blobdiff - fsck.c
cocci: apply the "object-store.h" part of "the_repository.pending"
[thirdparty/git.git] / fsck.c
diff --git a/fsck.c b/fsck.c
index 807a84971a29bbac6c8e0f7811f6db20b3075df2..0343fb7a8870ef3d6eb313281e53c0d06d5f70c8 100644 (file)
--- a/fsck.c
+++ b/fsck.c
@@ -1332,7 +1332,7 @@ static int fsck_blobs(struct oidset *blobs_found, struct oidset *blobs_done,
                if (oidset_contains(blobs_done, oid))
                        continue;
 
-               buf = read_object_file(oid, &type, &size);
+               buf = repo_read_object_file(the_repository, oid, &type, &size);
                if (!buf) {
                        if (is_promisor_object(oid))
                                continue;