cache.h: add repository argument to oid_object_info_extended
[git/git.git] / packfile.c
index 0bc67d0..d9914ba 100644 (file)
@@ -1474,7 +1474,7 @@ static void *read_object(const struct object_id *oid, enum object_type *type,
        oi.sizep = size;
        oi.contentp = &content;
 
-       if (oid_object_info_extended(oid, &oi, 0) < 0)
+       if (oid_object_info_extended(the_repository, oid, &oi, 0) < 0)
                return NULL;
        return content;
 }