Skip to content

Commit f692ac5

Browse files
committed
🎨支持svn https链接格式
1 parent d48d81f commit f692ac5

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

server/projects/main/apps/codeproj/serializers/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1175,7 +1175,7 @@ def check_branch_validate(self, repo, branch):
11751175
if repo.scm_type == models.Repository.ScmTypeEnum.GIT:
11761176
scm_url = "%s#%s" % (repo.get_scm_url_with_auth(), branch)
11771177
else:
1178-
scm_url = "%s/%s" % (repo.scm_url, branch)
1178+
scm_url = "%s/%s" % (repo.get_scm_url_with_auth(), branch)
11791179
logger.info("check branch validate: %s" % scm_url)
11801180
scm_client = core.ScmClientManager.get_scm_client_with_repo(repo, scm_url=scm_url)
11811181
try:
@@ -1312,7 +1312,7 @@ def check_branch_validate(self, repo, branch):
13121312
if repo.scm_type == models.Repository.ScmTypeEnum.GIT:
13131313
scm_url = "%s#%s" % (repo.get_scm_url_with_auth(), branch)
13141314
else:
1315-
scm_url = "%s/%s" % (repo.scm_url, branch)
1315+
scm_url = "%s/%s" % (repo.get_scm_url_with_auth(), branch)
13161316
logger.info("check branch validate: %s" % scm_url)
13171317
scm_client = core.ScmClientManager.get_scm_client_with_repo(repo, scm_url=scm_url)
13181318
try:
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)