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-atom.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'source/ui-atom.c') diff --git a/source/ui-atom.c b/source/ui-atom.c index bf58e34..c9194f6 100644 --- a/source/ui-atom.c +++ b/source/ui-atom.c @@ -181,12 +181,8 @@ void cgit_print_atom(char *tip, const char *path, int max_count) repo_init_revisions(the_repository, &rev, NULL); rev.max_count = max_count; setup_revisions(argc, argv, &rev, NULL); - // 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)) return; - } // CGI guarantees a server name, so only a bare test run reaches the // fallback, which keeps the mandatory feed id and links present. -- cgit