From: Vincent Pit Date: Tue, 7 Oct 2008 18:16:23 +0000 (+0200) Subject: Just don't return anything when system failed X-Git-Tag: v0.04~10 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;ds=inline;h=a43b4096bf0350b564465090554317935a84e7ef;p=perl%2Fmodules%2Frgit.git Just don't return anything when system failed --- diff --git a/lib/App/Rgit/Repository.pm b/lib/App/Rgit/Repository.pm index 43c6d5b..50cc9d0 100644 --- a/lib/App/Rgit/Repository.pm +++ b/lib/App/Rgit/Repository.pm @@ -132,7 +132,7 @@ sub run { system { $conf->git } $conf->git, @args; if ($? == -1) { warn "Failed to execute git: $!\n"; - return -1, -1; + return; } my $ret; $ret = WEXITSTATUS($?) if WIFEXITED($?);