The sixth batch for 2.18
[gitweb.git] / builtin / unpack-objects.c
index b7755c6cc5a05a536666d0ae2fd9d0c3171a6cfd..cfe9019f800ad0bd331e31a20a8b7a240dc3fde1 100644 (file)
@@ -199,7 +199,7 @@ static int check_object(struct object *obj, int type, void *data, struct fsck_op
 
        if (!(obj->flags & FLAG_OPEN)) {
                unsigned long size;
-               int type = oid_object_info(&obj->oid, &size);
+               int type = oid_object_info(the_repository, &obj->oid, &size);
                if (type != obj->type || type <= 0)
                        die("object of unexpected type");
                obj->flags |= FLAG_WRITTEN;