From: Jakub Narebski Date: Wed, 3 Jan 2007 19:47:25 +0000 (+0100) Subject: gitweb: There can be empty patches (in git_patchset_body) X-Git-Tag: v1.5.0-rc1~101 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/1ebb948f656c03a5bdaab4de1a113b9ffcb98bea?hp=6e72cf43a7b19bca62cebee5b1e4f43943c3b6fb 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 Signed-off-by: Junio C Hamano --- diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index 05b3876df3..2ead917a94 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -2527,7 +2527,7 @@ sub git_patchset_body { print "
$patch_line
\n"; $patch_line = <$fd>; - #last PATCH unless $patch_line; + last PATCH unless $patch_line; chomp $patch_line; #assert($patch_line =~ m/^+++/) if DEBUG;