object: add repository argument to object_as_type
Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
1ec5bfd24e
commit
1268dfac1e
2
tree.c
2
tree.c
@ -201,7 +201,7 @@ struct tree *lookup_tree(const struct object_id *oid)
|
||||
if (!obj)
|
||||
return create_object(the_repository, oid->hash,
|
||||
alloc_tree_node(the_repository));
|
||||
return object_as_type(obj, OBJ_TREE, 0);
|
||||
return object_as_type(the_repository, obj, OBJ_TREE, 0);
|
||||
}
|
||||
|
||||
int parse_tree_buffer(struct tree *item, void *buffer, unsigned long size)
|
||||
|
Reference in New Issue
Block a user