]> git.ipfire.org Git - thirdparty/git.git/commitdiff
path-walk: use repo_parse_tree_gently()
authorRené Scharfe <l.s.r@web.de>
Fri, 9 Jan 2026 21:30:18 +0000 (22:30 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sat, 10 Jan 2026 02:36:17 +0000 (18:36 -0800)
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>
path-walk.c

index f1ceed99e94ca9de680c172290f761ad26415781..364e4cfa19b2e493b76e4d1dbb67eba9951906da 100644 (file)
@@ -137,7 +137,7 @@ static int add_tree_entries(struct path_walk_context *ctx,
                error(_("failed to walk children of tree %s: not found"),
                      oid_to_hex(oid));
                return -1;
-       } else if (parse_tree_gently(tree, 1)) {
+       } else if (repo_parse_tree_gently(ctx->repo, tree, 1)) {
                error("bad tree object %s", oid_to_hex(oid));
                return -1;
        }