Skip to content

Commit

Permalink
Fix case when remote has http(s)://
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleKing committed Dec 23, 2021
1 parent 0c4ac46 commit e3daa8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GitLink.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e3daa8a

Please sign in to comment.