Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
alloc: add repository argument to alloc_tree_node
[gitweb.git]
/
tree.c
diff --git
a/tree.c
b/tree.c
index 1c68ea586bd30d3e3389efa1c83f25ed607d1d80..58cf19b4fa8e77a25cf64b4316f429d59978c33e 100644
(file)
--- a/
tree.c
+++ b/
tree.c
@@
-196,7
+196,8
@@
struct tree *lookup_tree(const struct object_id *oid)
{
struct object *obj = lookup_object(oid->hash);
if (!obj)
- return create_object(oid->hash, alloc_tree_node());
+ return create_object(the_repository, oid->hash,
+ alloc_tree_node(the_repository));
return object_as_type(obj, OBJ_TREE, 0);
}