Diff options
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Start each history walk through one helper
Diffstat (limited to '')
-rw-r--r--source/ui-log.c6
1 file changed, 1 insertion, 5 deletions
diff --git a/source/ui-log.c b/source/ui-log.c
index 5df26c8..4bb4b06 100644
--- a/source/ui-log.c
+++ b/source/ui-log.c
@@ -550,12 +550,8 @@ void cgit_print_log(const char *tip, int ofs, int cnt, const char *grep, const c
if (ctx.qry.ignorews)
DIFF_XDL_SET(&rev.diffopt, IGNORE_WHITESPACE);
- // 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))
goto out;
- }
if (pager) {
cgit_print_layout_start();