Skip to content

Commit 53c3967

Browse files
joeyhgitster
authored andcommitted
gitweb: avoid warnings for commits without body
In the unusual case when there is no commit message, gitweb would output an uninitialized value warning. Signed-off-by: Joey Hess <joey@kitenet.net> Acked-by: Jakub Narebski <jnareb@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent c882c01 commit 53c3967

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gitweb/gitweb.perl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2092,7 +2092,7 @@ sub parse_commit_text {
20922092
last;
20932093
}
20942094
}
2095-
if ($co{'title'} eq "") {
2095+
if (! defined $co{'title'} || $co{'title'} eq "") {
20962096
$co{'title'} = $co{'title_short'} = '(no commit message)';
20972097
}
20982098
# remove added spaces

0 commit comments

Comments
 (0)