object: add repository argument to object_as_type
[gitweb.git] / blob.c
diff --git a/blob.c b/blob.c
index 75b737a761e369d2c184d4fb38aee6a69bc62222..dada295698cebb6053737d9df0af7f2e95ff087c 100644 (file)
--- a/blob.c
+++ b/blob.c
@@ -11,7 +11,7 @@ struct blob *lookup_blob(const struct object_id *oid)
        if (!obj)
                return create_object(the_repository, oid->hash,
                                     alloc_blob_node(the_repository));
-       return object_as_type(obj, OBJ_BLOB, 0);
+       return object_as_type(the_repository, obj, OBJ_BLOB, 0);
 }
 
 int parse_blob_buffer(struct blob *item, void *buffer, unsigned long size)