diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index ba5024af14..7b458bcf8e 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -1656,7 +1656,7 @@ sub git_patchset_body { print "
\n"; LINE: - while (my $patch_line @$fd>) { + while (my $patch_line = <$fd>) { chomp $patch_line; if ($patch_line =~ m/^diff /) { # "git diff" header