Fixed to correctly return false on non-existing commits.
This commit is contained in:
parent
0fd0c40e89
commit
39699ba723
@ -319,7 +319,10 @@ class IDF_Scm_Git extends IDF_Scm
|
|||||||
escapeshellarg($commit));
|
escapeshellarg($commit));
|
||||||
}
|
}
|
||||||
$out = array();
|
$out = array();
|
||||||
exec($cmd, $out);
|
exec($cmd, $out, $ret);
|
||||||
|
if ($ret != 0) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
$log = array();
|
$log = array();
|
||||||
$change = array();
|
$change = array();
|
||||||
$inchange = false;
|
$inchange = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user