diff --git a/git-open b/git-open index 2688008..50dacfa 100755 --- a/git-open +++ b/git-open @@ -60,8 +60,8 @@ elif grep -q github <<<$giturl; then # bitbucket elif grep -q bitbucket <<<$giturl; then giturl=${giturl/git\@bitbucket\.org\:/https://bitbucket.org/} - # handle SSH protocol (links like ssh://git@github.com/user/repo) - giturl=${giturl/#ssh\:\/\/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)"