From: Célestin Matte Date: Fri, 14 Jun 2013 13:50:26 +0000 (+0200) Subject: git-remote-mediawiki: assign a variable as undef and make proper indentation X-Git-Tag: v1.8.4-rc0~147^2~13 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4f1b7883bc9b614f3a91eff7aa46cfdc85156ceb;p=thirdparty%2Fgit.git git-remote-mediawiki: assign a variable as undef and make proper indentation Explicitly assign local variable $/ as undef and make a proper one-instruction-by-line indentation Signed-off-by: Célestin Matte Signed-off-by: Matthieu Moy Signed-off-by: Junio C Hamano --- diff --git a/contrib/mw-to-git/git-remote-mediawiki.perl b/contrib/mw-to-git/git-remote-mediawiki.perl index 29fb614888..d1cddabd69 100755 --- a/contrib/mw-to-git/git-remote-mediawiki.perl +++ b/contrib/mw-to-git/git-remote-mediawiki.perl @@ -338,7 +338,10 @@ sub run_git { my $args = shift; my $encoding = (shift || "encoding(UTF-8)"); open(my $git, "-|:$encoding", "git " . $args); - my $res = do { local $/; <$git> }; + my $res = do { + local $/ = undef; + <$git> + }; close($git); return $res;