git.99rst.org
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
b835baf
)
git-remote-mediawiki: assign a variable as undef and make proper indentation
author
Célestin Matte
<redacted>
Fri, 14 Jun 2013 13:50:26 +0000
(15:50 +0200)
committer
Junio C Hamano
<redacted>
Fri, 14 Jun 2013 16:02:17 +0000
(09:02 -0700)
Explicitly assign local variable $/ as undef and make a proper
one-instruction-by-line indentation
Signed-off-by: Célestin Matte <redacted>
Signed-off-by: Matthieu Moy <redacted>
Signed-off-by: Junio C Hamano <redacted>
contrib/mw-to-git/git-remote-mediawiki.perl
patch
|
blob
|
history
diff --git
a/contrib/mw-to-git/git-remote-mediawiki.perl
b/contrib/mw-to-git/git-remote-mediawiki.perl
index 29fb614888f92bfb80465b7dc37ddaa0541d651a..d1cddabd69bd5a619c82ac0ecf3a30c35a548c8a 100755
(executable)
--- 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;
git clone https://git.99rst.org/PROJECT