Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

teuthology: fix the problem that git_build_url defaults to github #1835

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions teuthology/repo_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ def build_git_url(project, project_owner='ceph'):
elif project == 'ceph':
base = config.get_ceph_git_url()
else:
base = 'https://github.com/{project_owner}/{project}'
base = '{ceph_git_base_url}/{project_owner}/{project}'
url_templ = re.sub(r'\.git$', '', base)
return url_templ.format(project_owner=project_owner, project=project)
return url_templ.format(ceph_git_base_url=config.ceph_git_base_url, project_owner=project_owner, project=project)


def ls_remote(url, ref):
Expand Down