Fixed to correctly return false on non-existing commits.

This commit is contained in:
Loic d'Anterroches 2009-05-26 11:28:36 +02:00
parent 0fd0c40e89
commit 39699ba723

View File

@ -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;