Fixed crash of the Subversion backend when requesting a non existing revision.
This commit is contained in:
parent
c321e4828b
commit
1a067ca107
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user