diff --git a/git-open b/git-open index f847a6d..50dacfa 100755 --- a/git-open +++ b/git-open @@ -60,6 +60,9 @@ elif grep -q github <<<$giturl; then # bitbucket elif grep -q bitbucket <<<$giturl; then giturl=${giturl/git\@bitbucket\.org\:/https://bitbucket.org/} + # handle SSH protocol (change ssh://https://bitbucket.org/user/repo to https://bitbucket.org/user/repo) + giturl=${giturl/#ssh\:\/\/git\@/https://} + rev="$(git rev-parse HEAD)" git_pwd="$(git rev-parse --show-prefix)" providerUrlDifference="src/${rev}/${git_pwd}"