* ignore exist repo.
This commit is contained in:
@@ -3654,6 +3654,9 @@ class upgradeModel extends model
|
||||
$repoPath = $repo['path'];
|
||||
if(empty($repoPath)) continue;
|
||||
|
||||
$existRepo = $this->dao->select('*')->from(TABLE_REPO)->where('path')->eq($repoPath)->andWhere('SCM')->eq('Subversion')->fetch();
|
||||
if($existRepo) continue;
|
||||
|
||||
$svnRepo = new stdclass();
|
||||
$svnRepo->client = $this->config->svn->client;
|
||||
$svnRepo->name = basename($repoPath);
|
||||
@@ -3682,6 +3685,9 @@ class upgradeModel extends model
|
||||
$repoPath = $repo['path'];
|
||||
if(empty($repoPath)) continue;
|
||||
|
||||
$existRepo = $this->dao->select('*')->from(TABLE_REPO)->where('path')->eq($repoPath)->andWhere('SCM')->eq('Git')->fetch();
|
||||
if($existRepo) continue;
|
||||
|
||||
$gitRepo = new stdclass();
|
||||
$gitRepo->client = $this->config->git->client;
|
||||
$gitRepo->name = basename($repoPath);
|
||||
|
||||
Reference in New Issue
Block a user