Skip to content

Commit 1ebb948

Browse files
jnarebJunio C Hamano
authored andcommitted
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>
1 parent 6e72cf4 commit 1ebb948

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gitweb/gitweb.perl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2527,7 +2527,7 @@ sub git_patchset_body {
25272527
print "<div class=\"diff from_file\">$patch_line</div>\n";
25282528

25292529
$patch_line = <$fd>;
2530-
#last PATCH unless $patch_line;
2530+
last PATCH unless $patch_line;
25312531
chomp $patch_line;
25322532

25332533
#assert($patch_line =~ m/^+++/) if DEBUG;

0 commit comments

Comments
 (0)