dir.c: remove an implicit dependency on the_index in pathspec code
[gitweb.git] / builtin / index-pack.c
index 9c08cf3ceadaff8b56aecf2421d06c060fcf835a..de311febe3034cb17cb26a57757c144842af8d9f 100644 (file)
@@ -832,7 +832,7 @@ static void sha1_object(const void *data, struct object_entry *obj_entry,
        if (strict || do_fsck_object) {
                read_lock();
                if (type == OBJ_BLOB) {
-                       struct blob *blob = lookup_blob(oid);
+                       struct blob *blob = lookup_blob(the_repository, oid);
                        if (blob)
                                blob->object.flags |= FLAG_CHECKED;
                        else