X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/559ab5ecc4445c8477ecf62c9fc97efa412dd562..360af46fac6fe79ec1868141a6c34b4c6b732ba0:/ui-log.c diff --git a/ui-log.c b/ui-log.c index 4573255..5f6a69c 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("