Skip to content

Commit

Permalink
🎨支持svn https链接格式
Browse files Browse the repository at this point in the history
  • Loading branch information
Lingghh committed Feb 21, 2023
1 parent d48d81f commit f692ac5
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 f692ac5

Please sign in to comment.