From: Jakub Narebski Date: Mon, 28 Aug 2006 12:48:13 +0000 (+0200) Subject: gitweb: git_print_log: signoff line is non-empty line X-Git-Url: https://git.ladys.computer/Gitweb/commitdiff_plain/d56444b80f55ae75a98dafb0d9fcfc4d9d883940f4ed4457ea2d2ae93c1346bd?ds=inline 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 Signed-off-by: Junio C Hamano --- diff --git a/gitweb.perl b/gitweb.perl index 1cc130f..c706225 100755 --- a/gitweb.perl +++ b/gitweb.perl @@ -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 "" . esc_html($line) . "
\n"; next;