* Fix bug#34051.

This commit is contained in:
chaideqing
2023-06-08 09:48:32 +08:00
parent 728168606d
commit 8fdbff2f8c
2 changed files with 5 additions and 3 deletions
+3 -1
View File
@@ -15,7 +15,9 @@ class scm
$className = $repo->SCM;
if($className == 'Git') $className = 'GitRepo';
if(!class_exists($className)) require(strtolower($className) . '.class.php');
$this->engine = new $className($repo->client, $repo->path, $repo->account, $repo->password, $repo->encoding, $repo);
$repoRoot = $repo->path;
if('Subversion' == $className && !empty($repo->prefix)) $repoRoot = substr($repo->path, 0, strlen($repo->path) - strlen($repo->prefix));
$this->engine = new $className($repo->client, $repoRoot, $repo->account, $repo->password, $repo->encoding, $repo);
}
/**