Diff options
| author | Bryce Kwon <bryce@brycekwon.com> | |
|---|---|---|
| committer | Bryce Kwon <bryce@brycekwon.com> | |
| commit | ||
| parent | ||
| tree | ||
| download | ||
Start each history walk through one helper
Diffstat (limited to '')
| -rw-r--r-- | source/ui-atom.c | 6 |
1 file changed, 1 insertion, 5 deletions
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. |
