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>
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;
}