]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/fsck.c
object: add repository argument to parse_object
[thirdparty/git.git] / builtin / fsck.c
index 3ad4f160f9959a30262c81d5c3f85c36649d2895..2b0930101d3e4efae805ee21e39f9247a4cf6a14 100644 (file)
@@ -452,7 +452,7 @@ static int fsck_handle_ref(const char *refname, const struct object_id *oid,
 {
        struct object *obj;
 
-       obj = parse_object(oid);
+       obj = parse_object(the_repository, oid);
        if (!obj) {
                if (is_promisor_object(oid)) {
                        /*
@@ -614,7 +614,7 @@ static int fsck_cache_tree(struct cache_tree *it)
                fprintf(stderr, "Checking cache tree\n");
 
        if (0 <= it->entry_count) {
-               struct object *obj = parse_object(&it->oid);
+               struct object *obj = parse_object(the_repository, &it->oid);
                if (!obj) {
                        error("%s: invalid sha1 pointer in cache-tree",
                              oid_to_hex(&it->oid));