@matheusbsbs / matheus-bagliano / commits / 1ebb948f65
Fork 0

gitweb: There can be empty patches (in git_patchset_body)

We now do not skip over empty patches in git_patchset_body (where empty means that they consist only of git diff header, and of extended diff header), so uncomment branch of code dealing with empty patches (patches which do not have even two-line from/to header) Signed-off-by: Jakub Narebski <jnareb@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>

Jakub Narebski committed Jan 3, 2007 at 20:47 UTC 1ebb948f656c03a5bdaab4de1a113b9ffcb98bea
1 file changed +1 -1
gitweb/gitweb.perl
+1 -1
@@ -2527,7 +2527,7 @@ sub git_patchset_body {
2527 print "<div class=\"diff from_file\">$patch_line</div>\n";
2528
2529 $patch_line = <$fd>;
2530 - #last PATCH unless $patch_line;
2530 + last PATCH unless $patch_line;
2531 chomp $patch_line;
2532
2533 #assert($patch_line =~ m/^+++/) if DEBUG;