Diff options
Diffstat (limited to '')
-rw-r--r--source/ui-stats.c5
1 file changed, 1 insertion, 4 deletions
diff --git a/source/ui-stats.c b/source/ui-stats.c
index cab484f..83a4ee9 100644
--- a/source/ui-stats.c
+++ b/source/ui-stats.c
@@ -217,10 +217,7 @@ static int collect_stats(const struct cgit_period *period, struct string_list *a
// whole history and discarding older commits. The check below still
// bounds the period edge exactly.
rev.max_age = since;
- // A failed setup leaves the walk holding freed commits, so it must
- // not be read from.
- if (prepare_revision_walk(&rev)) {
- cgit_print_error_page(500, "Internal Server Error", "Unable to read the history");
+ if (cgit_prepare_walk(&rev)) {
strvec_clear(&argv);
return -1;
}