X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/559ab5ecc4445c8477ecf62c9fc97efa412dd562..a8b9ef8c1c68fbb9c89db2d8c12dca38c15e2bfd:/ui-log.c?ds=sidebyside diff --git a/ui-log.c b/ui-log.c index 4573255..0a3938b 100644 --- a/ui-log.c +++ b/ui-log.c @@ -141,7 +141,9 @@ static int show_commit(struct commit *commit, struct rev_info *revs) /* When we get here we have precisely one parent. */ parent = parents->item; - parse_commit(parent); + /* If we can't parse the commit, let print_commit() report an error. */ + if (parse_commit(parent)) + return 1; files = 0; add_lines = 0; @@ -202,7 +204,7 @@ static void print_commit(struct commit *commit, struct rev_info *revs) } else { html("