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 <celestin.matte@ensimag.fr> Signed-off-by: Matthieu Moy <matthieu.moy@grenoble-inp.fr> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Célestin Matte committed Jun 14, 2013 at 15:50 UTC 4f1b7883bc9b614f3a91eff7aa46cfdc85156ceb
1 file changed +4 -1
contrib/mw-to-git/git-remote-mediawiki.perl
+4 -1
@@ -338,7 +338,10 @@ sub run_git {
338 my $args = shift;
339 my $encoding = (shift || "encoding(UTF-8)");
340 open(my $git, "-|:$encoding", "git " . $args);
341 - my $res = do { local $/; <$git> };
341 + my $res = do {
342 + local $/ = undef;
343 + <$git>
344 + };
345 close($git);
346
347 return $res;