From 39699ba723c920bb817e82dd9bfe20636cb96998 Mon Sep 17 00:00:00 2001 From: Loic d'Anterroches Date: Tue, 26 May 2009 11:28:36 +0200 Subject: [PATCH] Fixed to correctly return false on non-existing commits. --- src/IDF/Scm/Git.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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;