From 1a067ca107c98317646df5664d219632aef7e2ea Mon Sep 17 00:00:00 2001 From: Loic d'Anterroches Date: Thu, 9 Jul 2009 00:05:36 +0200 Subject: [PATCH] Fixed crash of the Subversion backend when requesting a non existing revision. --- src/IDF/Scm/Svn.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/IDF/Scm/Svn.php b/src/IDF/Scm/Svn.php index 6766186..0414ea3 100644 --- a/src/IDF/Scm/Svn.php +++ b/src/IDF/Scm/Svn.php @@ -350,6 +350,9 @@ class IDF_Scm_Svn extends IDF_Scm */ public function getCommit($commit, $getdiff=false) { + if (!$this->isValidRevision($commit)) { + return false; + } $res = array(); $cmd = sprintf(Pluf::f('svn_path', 'svn').' log --xml --limit 1 -v --username=%s --password=%s %s@%s', escapeshellarg($this->username),