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>
Jakub Narebski committed
Aug 28, 2006 at 14:48 UTC
fba20b429a45a682796214140a7e92fac52a3dbe
1 file changed
+1
gitweb/gitweb.perl
+1
@@ -1407,6 +1407,7 @@ sub git_print_log ($;%) {
1407
foreach my $line (@$log) {
1408
if ($line =~ m/^ *(signed[ \-]off[ \-]by[ :]|acked[ \-]by[ :]|cc[ :])/i) {
1409
$signoff = 1;
1410
+ $empty = 0;
1411
if (! $opts{'-remove_signoff'}) {
1412
print "<span class=\"signoff\">" . esc_html($line) . "</span><br/>\n";
1413
next;