From 294db67ab7aeec3c68c23e03ac5b98ec76276ce6 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 31 Oct 2026 14:37:23 -0700 Subject: Start each history walk through one helper --- source/ui-stats.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'source/ui-stats.c') 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; } -- cgit