Skip to content

Commit 338c35d

Browse files
ErichDonGublertomrittervg
authored andcommitted
fix(scm): correctly check hostnames for repo URL generation
1 parent 9ebe1f1 commit 338c35d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

components/scmprovider.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,13 @@
1414

1515

1616
def repo_and_commit_to_url(repo, commit):
17-
if "https://chromium.googlesource.com" or 'https://https://aomedia.googlesource.com' in repo:
17+
if any(
18+
hostname in repo
19+
for hostname in [
20+
"https://chromium.googlesource.com",
21+
"https://https://aomedia.googlesource.com",
22+
]
23+
):
1824
return repo + "/+/" + commit
1925

2026
# gitlab wants https://domain.com/org/project/-/commit/sha

0 commit comments

Comments
 (0)