]> Lady’s Gitweb - Gitweb/blobdiff - gitweb.perl
gitweb: avoid warnings for commits without body
[Gitweb] / gitweb.perl
index c763d1d4e79a2f89458c3a1a8753422c73758c695efb8a6349b6624590618ed5..95a3415f4140be21d3e41c7ca81076659eed370eae87c9d1fce3b9acc1c3a81e 100755 (executable)
@@ -2124,7 +2124,7 @@ sub parse_commit_text {
                        last;
                }
        }
-       if ($co{'title'} eq "") {
+       if (! defined $co{'title'} || $co{'title'} eq "") {
                $co{'title'} = $co{'title_short'} = '(no commit message)';
        }
        # remove added spaces
This page took 0.315228 seconds and 4 git commands to generate.