tree: use repo_parse_tree()

e092073d64 (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>

René Scharfe committed Jan 9, 2026 at 22:30 UTC e61c387a1be8feec8bcb0cf1793893d206eaa2f7
1 file changed +1 -1
tree.c
+1 -1
@@ -28,7 +28,7 @@ int read_tree_at(struct repository *r,
28 if (depth > r->settings.max_allowed_tree_depth)
29 return error("exceeded maximum allowed tree depth");
30
31 - if (parse_tree(tree))
31 + if (repo_parse_tree(r, tree))
32 return -1;
33
34 init_tree_desc(&desc, &tree->object.oid, tree->buffer, tree->size);