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>
This commit is contained in:
Jakub Narebski 2007-01-03 20:47:25 +01:00 committed by Junio C Hamano
parent 6e72cf43a7
commit 1ebb948f65

View File

@ -2527,7 +2527,7 @@ sub git_patchset_body {
print "<div class=\"diff from_file\">$patch_line</div>\n"; print "<div class=\"diff from_file\">$patch_line</div>\n";
$patch_line = <$fd>; $patch_line = <$fd>;
#last PATCH unless $patch_line; last PATCH unless $patch_line;
chomp $patch_line; chomp $patch_line;
#assert($patch_line =~ m/^+++/) if DEBUG; #assert($patch_line =~ m/^+++/) if DEBUG;