Skip to content

Commit

Permalink
git-remote-mediawiki: check return value of open
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Célestin Matte authored and Junio C Hamano committed Jun 14, 2013
1 parent 4f1b788 commit ee25ff2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion contrib/mw-to-git/git-remote-mediawiki.perl
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit ee25ff2

Please sign in to comment.