From 040ee55aa710cf1aabcd9b26ada13d918a4c46d2 Mon Sep 17 00:00:00 2001 From: oluckyman Date: Tue, 25 Aug 2015 20:02:04 +0200 Subject: [PATCH] Add support for repos cloned via SSH --- git-open | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/git-open b/git-open index ad8806b..f847a6d 100755 --- a/git-open +++ b/git-open @@ -51,6 +51,10 @@ if grep -q gist.github <<<$giturl; then # Github elif grep -q github <<<$giturl; then giturl=${giturl/git\@github\.com\:/https://github.com/} + + # handle SSH protocol (links like ssh://git@github.com/user/repo) + giturl=${giturl/#ssh\:\/\/git\@github\.com\//https://github.com/} + providerUrlDifference=tree # bitbucket