path-walk: use repo_parse_tree_gently()

Use the passed in repository instead of the implicit the_repository when parsing the tree. 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 d473865154ff12d398ee86d2c9093419aedfbf58
1 file changed +1 -1
path-walk.c
+1 -1
@@ -137,7 +137,7 @@ static int add_tree_entries(struct path_walk_context *ctx,
137 error(_("failed to walk children of tree %s: not found"),
138 oid_to_hex(oid));
139 return -1;
140 - } else if (parse_tree_gently(tree, 1)) {
140 + } else if (repo_parse_tree_gently(ctx->repo, tree, 1)) {
141 error("bad tree object %s", oid_to_hex(oid));
142 return -1;
143 }