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:
4f1b788
)
git-remote-mediawiki: check return value of open
author
Célestin Matte
<redacted>
Fri, 14 Jun 2013 13:50:27 +0000
(15:50 +0200)
committer
Junio C Hamano
<redacted>
Fri, 14 Jun 2013 16:02:17 +0000
(09:02 -0700)
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 d1cddabd69bd5a619c82ac0ecf3a30c35a548c8a..82684f385dc1410fd60d802c967ae663add4b118 100755
(executable)
--- a/
contrib/mw-to-git/git-remote-mediawiki.perl
+++ b/
contrib/mw-to-git/git-remote-mediawiki.perl
@@
-337,7
+337,8
@@
sub get_mw_pages {
sub run_git {
my $args = shift;
my $encoding = (shift || "encoding(UTF-8)");
- open(my $git, "-|:$encoding", "git " . $args);
+ open(my $git, "-|:$encoding", "git " . $args)
+ or die "Unable to open: $!\n";
my $res = do {
local $/ = undef;
<$git>
git clone https://git.99rst.org/PROJECT