Skip to content
Snippets Groups Projects
Commit 3529d35c authored by Ronald Jäpel's avatar Ronald Jäpel
Browse files

Fix Readme URL processing

parent 32e3bdde
No related branches found
No related tags found
No related merge requests found
...@@ -2,6 +2,9 @@ from urllib.parse import urlparse ...@@ -2,6 +2,9 @@ from urllib.parse import urlparse
def ssh_url_to_http_url(url): def ssh_url_to_http_url(url):
if "https" in url:
return url
url = url.replace(":", "/").replace("git@", "https://").replace(".git", "") url = url.replace(":", "/").replace("git@", "https://").replace(".git", "")
return url return url
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment