diff --git a/module/upgrade/model.php b/module/upgrade/model.php index d470bfba42..3149e25337 100644 --- a/module/upgrade/model.php +++ b/module/upgrade/model.php @@ -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);