diff options
Diffstat (limited to 'ui-plain.c')
-rw-r--r-- | ui-plain.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ui-plain.c b/ui-plain.c index 070c34b..b73c1cf 100644 --- a/ui-plain.c +++ b/ui-plain.c | |||
@@ -198,7 +198,8 @@ void cgit_print_plain(void) | |||
198 | } | 198 | } |
199 | else | 199 | else |
200 | walk_tree_ctx.match_baselen = basedir_len(path_items.match); | 200 | walk_tree_ctx.match_baselen = basedir_len(path_items.match); |
201 | read_tree_recursive(commit->maybe_tree, "", 0, 0, &paths, walk_tree, &walk_tree_ctx); | 201 | read_tree_recursive(the_repository, commit->maybe_tree, |
202 | "", 0, 0, &paths, walk_tree, &walk_tree_ctx); | ||
202 | if (!walk_tree_ctx.match) | 203 | if (!walk_tree_ctx.match) |
203 | cgit_print_error_page(404, "Not found", "Not found"); | 204 | cgit_print_error_page(404, "Not found", "Not found"); |
204 | else if (walk_tree_ctx.match == 2) | 205 | else if (walk_tree_ctx.match == 2) |