]> Lady’s Gitweb - Gitweb/blobdiff - gitweb.perl
gitweb: Handle commits with empty commit messages more reasonably
[Gitweb] / gitweb.perl
index 7e9b5d4ca2dc1f66d7f7e44b79e7c4d572cf7a205bb9a9e249222e38074a4784..21e19f0d90f070eb0b2e76fe56c2d81317b4e31a07928f79c510e1d1d4666a90 100755 (executable)
@@ -1120,6 +1120,9 @@ sub parse_commit {
                        last;
                }
        }
+       if ($co{'title'} eq "") {
+               $co{'title'} = $co{'title_short'} = '(no commit message)';
+       }
        # remove added spaces
        foreach my $line (@commit_lines) {
                $line =~ s/^    //;
This page took 0.321891 seconds and 4 git commands to generate.