summaryrefslogtreecommitdiff
path: root/tree.c
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2018-06-28 18:21:54 -0700
committerJunio C Hamano <gitster@pobox.com>2018-06-29 10:43:38 -0700
commit1268dfac1e98e973c63abb142551c64bba6a44ca (patch)
tree44faa405757f42165cffdd0b55c4f836d0a6e652 /tree.c
parent1ec5bfd24e57c8d40d3f7d911fb9b85723282a46 (diff)
downloadgit-1268dfac1e98e973c63abb142551c64bba6a44ca.tar.gz
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>
Diffstat (limited to 'tree.c')
-rw-r--r--tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tree.c b/tree.c
index 73e8a8a948..f31afb81be 100644
--- a/tree.c
+++ b/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)