Skip to content

Commit

Permalink
Merge pull request #777 from Lingghh/dev/support_svn_https
Browse files Browse the repository at this point in the history
🎨支持svn https链接格式
  • Loading branch information
cyw3 authored Feb 22, 2023
2 parents dade06e + f692ac5 commit a936c30
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/projects/main/apps/codeproj/serializers/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1175,7 +1175,7 @@ def check_branch_validate(self, repo, branch):
if repo.scm_type == models.Repository.ScmTypeEnum.GIT:
scm_url = "%s#%s" % (repo.get_scm_url_with_auth(), branch)
else:
scm_url = "%s/%s" % (repo.scm_url, branch)
scm_url = "%s/%s" % (repo.get_scm_url_with_auth(), branch)
logger.info("check branch validate: %s" % scm_url)
scm_client = core.ScmClientManager.get_scm_client_with_repo(repo, scm_url=scm_url)
try:
Expand Down Expand Up @@ -1312,7 +1312,7 @@ def check_branch_validate(self, repo, branch):
if repo.scm_type == models.Repository.ScmTypeEnum.GIT:
scm_url = "%s#%s" % (repo.get_scm_url_with_auth(), branch)
else:
scm_url = "%s/%s" % (repo.scm_url, branch)
scm_url = "%s/%s" % (repo.get_scm_url_with_auth(), branch)
logger.info("check branch validate: %s" % scm_url)
scm_client = core.ScmClientManager.get_scm_client_with_repo(repo, scm_url=scm_url)
try:
Expand Down
Binary file not shown.
Binary file not shown.

0 comments on commit a936c30

Please sign in to comment.