Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
object: add repository argument to grow_object_hash
[gitweb.git]
/
tree.c
diff --git
a/tree.c
b/tree.c
index 1c68ea586bd30d3e3389efa1c83f25ed607d1d80..63730e3fb46e47872bddce714cba96c0af3a7d9c 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());
return object_as_type(obj, OBJ_TREE, 0);
}