aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetr Baudis <pasky@suse.cz>2006-10-06 18:55:04 +0200
committerJunio C Hamano <junkio@cox.net>2006-10-07 02:16:33 -0700
commit7e0fe5c939bdd5cc2885d21799e95304a46bf706 (patch)
treee81acbc37d79873113dc406bcd24c6f9933ea6a2
parent689b7f5ccbbb71f5a1a165cfb1e24abd42c7d009 (diff)
downloadgit-7e0fe5c939bdd5cc2885d21799e95304a46bf706.tar.gz
git-7e0fe5c939bdd5cc2885d21799e95304a46bf706.tar.xz
gitweb: Handle commits with empty commit messages more reasonably
Currently those look very weird, you can't get easily at the commit view etc. This patch makes their title '(no commit message)'. Signed-off-by: Petr Baudis <pasky@suse.cz> Signed-off-by: Junio C Hamano <junkio@cox.net>
-rwxr-xr-xgitweb/gitweb.perl3
1 files changed, 3 insertions, 0 deletions
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index 3d677a9db..c7a245ac2 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/^ //;