diff --git a/src/IDF/Scm/Git.php b/src/IDF/Scm/Git.php index 76d7a10..d35ef95 100644 --- a/src/IDF/Scm/Git.php +++ b/src/IDF/Scm/Git.php @@ -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;