mirror of
https://github.com/git/git.git
synced 2024-11-24 10:26:17 +08:00
gitweb: git_print_log: signoff line is non-empty line
This correct minor error in git_print_log that didn't add final empty line when requested, if commit log ended with signoff. Signed-off-by: Jakub Narebski <jnareb@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
parent
6fd92a28eb
commit
fba20b429a
@ -1407,6 +1407,7 @@ sub git_print_log ($;%) {
|
||||
foreach my $line (@$log) {
|
||||
if ($line =~ m/^ *(signed[ \-]off[ \-]by[ :]|acked[ \-]by[ :]|cc[ :])/i) {
|
||||
$signoff = 1;
|
||||
$empty = 0;
|
||||
if (! $opts{'-remove_signoff'}) {
|
||||
print "<span class=\"signoff\">" . esc_html($line) . "</span><br/>\n";
|
||||
next;
|
||||
|
Loading…
Reference in New Issue
Block a user