From 843d86ed918b3fbab118d3c84566222713c4d977 Mon Sep 17 00:00:00 2001 From: Niklas Heer Date: Wed, 11 Jan 2017 22:38:51 +0100 Subject: [PATCH] adds support for ssh urls --- gsync.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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("/")