* ignore exist repo.

This commit is contained in:
wangyidong
2020-03-04 20:50:32 +08:00
parent 8e2f609b41
commit a831026b28
+6
View File
@@ -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);