From e3daa8aa2ecc86d33506af02395e642ea21322a9 Mon Sep 17 00:00:00 2001 From: Kyle King Date: Wed, 22 Dec 2021 19:07:25 -0500 Subject: [PATCH] Fix case when remote has http(s):// --- GitLink.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GitLink.py b/GitLink.py index 002e351..c4fb83b 100644 --- a/GitLink.py +++ b/GitLink.py @@ -108,7 +108,7 @@ def run(self, edit, **args): user, domain = domain.split('.', 1) else: # format is {domain}/{user}/{repo}.git - domain, user, repo = remote.split("/") + domain, user, repo = remote.split("://")[-1].split("/") project = None print(domain, user, repo) # Find top level repo in current dir structure