diff options
author | Jakub Narebski <jnareb@gmail.com> | 2007-01-03 20:47:25 +0100 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2007-01-03 12:19:20 -0800 |
commit | 1ebb948f656c03a5bdaab4de1a113b9ffcb98bea (patch) | |
tree | a9963e443bbc0700ca14a7151d5efb97a4389bd2 /gitweb | |
parent | 6e72cf43a7b19bca62cebee5b1e4f43943c3b6fb (diff) | |
download | git-1ebb948f656c03a5bdaab4de1a113b9ffcb98bea.tar.gz git-1ebb948f656c03a5bdaab4de1a113b9ffcb98bea.tar.xz |
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>
Diffstat (limited to 'gitweb')
-rwxr-xr-x | gitweb/gitweb.perl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index 05b3876df..2ead917a9 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -2527,7 +2527,7 @@ sub git_patchset_body { print "<div class=\"diff from_file\">$patch_line</div>\n"; $patch_line = <$fd>; - #last PATCH unless $patch_line; + last PATCH unless $patch_line; chomp $patch_line; #assert($patch_line =~ m/^+++/) if DEBUG; |