Skip to content

Commit e61c387

Browse files
rscharfegitster
authored andcommitted
tree: use repo_parse_tree()
e092073 (tree.c: make read_tree*() take 'struct repository *', 2018-11-18) replaced explicit uses of the_repository. parse_tree() uses it internally, though, so call repo_parse_tree() instead and hand it the correct repository. Signed-off-by: René Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent d473865 commit e61c387

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tree.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ int read_tree_at(struct repository *r,
2828
if (depth > r->settings.max_allowed_tree_depth)
2929
return error("exceeded maximum allowed tree depth");
3030

31-
if (parse_tree(tree))
31+
if (repo_parse_tree(r, tree))
3232
return -1;
3333

3434
init_tree_desc(&desc, &tree->object.oid, tree->buffer, tree->size);

0 commit comments

Comments
 (0)