]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/fast-export.c
object: add repository argument to lookup_object
[thirdparty/git.git] / builtin / fast-export.c
index a16aeaa826f90a6f7e20f8e7e0e5137d1c3006bc..e39c4e2c1d00e4090965d01305e952539395f1ea 100644 (file)
@@ -230,7 +230,7 @@ static void export_blob(const struct object_id *oid)
        if (is_null_oid(oid))
                return;
 
-       object = lookup_object(oid->hash);
+       object = lookup_object(the_repository, oid->hash);
        if (object && object->flags & SHOWN)
                return;
 
@@ -402,7 +402,8 @@ static void show_filemodify(struct diff_queue_struct *q,
                                                   anonymize_sha1(&spec->oid) :
                                                   spec->oid.hash));
                        else {
-                               struct object *object = lookup_object(spec->oid.hash);
+                               struct object *object = lookup_object(the_repository,
+                                                                     spec->oid.hash);
                                printf("M %06o :%d ", spec->mode,
                                       get_object_mark(object));
                        }