cache.h: add repository argument to oid_object_info_extended
[gitweb.git] / packfile.c
index 0bc67d0e00966008f9f8a6fa1c1b6540569a7cc0..d9914ba7232a0c6c82a09cf0272bffebc8e807f5 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;
 }