summaryrefslogtreecommitdiff
path: root/list-objects.c
diff options
context:
space:
mode:
Diffstat (limited to 'list-objects.c')
-rw-r--r--list-objects.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/list-objects.c b/list-objects.c
index 42c17d9573..91b23e22f7 100644
--- a/list-objects.c
+++ b/list-objects.c
@@ -167,10 +167,10 @@ static void process_tree(struct traversal_context *ctx,
!revs->include_check_obj(&tree->object, revs->include_check_data))
return;
- if (ctx->depth > max_allowed_tree_depth)
+ if (ctx->depth > revs->repo->settings.max_allowed_tree_depth)
die("exceeded maximum allowed tree depth");
- failed_parse = parse_tree_gently(tree, 1);
+ failed_parse = repo_parse_tree_gently(the_repository, tree, 1);
if (failed_parse) {
if (revs->ignore_missing_links)
return;