Skip to content

Commit d473865

Browse files
rscharfegitster
authored andcommitted
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>
1 parent fd64c6f commit d473865

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

path-walk.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ static int add_tree_entries(struct path_walk_context *ctx,
137137
error(_("failed to walk children of tree %s: not found"),
138138
oid_to_hex(oid));
139139
return -1;
140-
} else if (parse_tree_gently(tree, 1)) {
140+
} else if (repo_parse_tree_gently(ctx->repo, tree, 1)) {
141141
error("bad tree object %s", oid_to_hex(oid));
142142
return -1;
143143
}

0 commit comments

Comments
 (0)