diff --git a/gsync.py b/gsync.py index 924f5e9..35944e7 100644 --- a/gsync.py +++ b/gsync.py @@ -26,7 +26,11 @@ print("Getting repo's url...") print("Syncing repo:", repo_url) - url_segments = repo_url.split("github.com/") + if "github.com:" not in repo_url: + url_segments = repo_url.split("github.com/") + else: + url_segments = repo_url.split("github.com:") + path = url_segments[1] user, repo = path.split("/")