diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index 3d677a9db5e4db4b2455b40ecc643739d098ef5c..c7a245ac2dade108e3ac97403c5c4c86790ac6fc 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -1071,6 +1071,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/^ //;