[PATCH 07/10] path-walk: use repo_parse_tree_gently()
- From
René Scharfe <l.s.r@web.de>
- Date
- Jan 9, 2026, 21:30 UTC
- Message-ID
- <20260109213021.2546-8-l.s.r@web.de>
- In-Reply-To
- <20260109213021.2546-1-l.s.r@web.de>
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> --- path-walk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/path-walk.c b/path-walk.c index f1ceed99e94..364e4cfa19b 100644 --- a/path-walk.c +++ b/path-walk.c @@ -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; }
-- 2.52.0