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));
|
||||
}
|
||||
$out = array();
|
||||
exec($cmd, $out);
|
||||
exec($cmd, $out, $ret);
|
||||
if ($ret != 0) {
|
||||
return false;
|
||||
}
|
||||
$log = array();
|
||||
$change = array();
|
||||
$inchange = false;
|
||||
|
Loading…
Reference in New Issue
Block a user