Skip to content
Snippets Groups Projects
Commit beadae49 authored by r.jaepel's avatar r.jaepel
Browse files

Allow cloning from local paths

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