/
uis
/
git
/
x
/
uis
/
git
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
object: add repository argument to create_object
[git/git.git]
/
tree.c
diff --git
a/tree.c
b/tree.c
index
1c68ea5
..
63730e3
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);
}