Code

gitweb: git_print_log: signoff line is non-empty line
authorJakub Narebski <jnareb@gmail.com>
Mon, 28 Aug 2006 12:48:13 +0000 (14:48 +0200)
committerJunio C Hamano <junkio@cox.net>
Mon, 28 Aug 2006 23:21:35 +0000 (16:21 -0700)
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>
gitweb/gitweb.perl

index 6d53c8b9563da00254272f4cc7863cbc3b173dd1..24c2fe2a1b552b6f6d520be04ca267247c136c83 100755 (executable)
@@ -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;