summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorMatthieu Moy <Matthieu.Moy@imag.fr>2013-07-03 09:14:19 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-07-03 19:10:13 (GMT)
commit0e7c41c0cd14b0d748ce624e49800b63f9b27991 (patch)
tree9e4403959db568790d1b24b012a25049b203771b /contrib
parent8c4e4ec3ff053331c845331645a437b01b1f0de6 (diff)
downloadgit-0e7c41c0cd14b0d748ce624e49800b63f9b27991.zip
git-0e7c41c0cd14b0d748ce624e49800b63f9b27991.tar.gz
git-0e7c41c0cd14b0d748ce624e49800b63f9b27991.tar.bz2
git-remote-mediawiki: un-brace file handles in binmode calls
Commit e83d36b66fc turned "print STDOUT" into "print {*STDOUT}", as suggested by perlcritic. Unfortunately, it also changed two "binmode STDOUT" calls the same way, which does not work and yield a "Not a GLOB reference" error. Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/mw-to-git/git-remote-mediawiki.perl4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/mw-to-git/git-remote-mediawiki.perl b/contrib/mw-to-git/git-remote-mediawiki.perl
index 71baf8a..d09f5da 100755
--- a/contrib/mw-to-git/git-remote-mediawiki.perl
+++ b/contrib/mw-to-git/git-remote-mediawiki.perl
@@ -635,9 +635,9 @@ sub literal_data_raw {
my ($content) = @_;
# Avoid confusion between size in bytes and in characters
utf8::downgrade($content);
- binmode {*STDOUT}, ':raw';
+ binmode STDOUT, ':raw';
print {*STDOUT} 'data ', bytes::length($content), "\n", $content;
- binmode {*STDOUT}, ':encoding(UTF-8)';
+ binmode STDOUT, ':encoding(UTF-8)';
return;
}