diff --git a/git-open b/git-open index 23df3dd..ad8806b 100755 --- a/git-open +++ b/git-open @@ -56,7 +56,9 @@ elif grep -q github <<<$giturl; then # bitbucket elif grep -q bitbucket <<<$giturl; then giturl=${giturl/git\@bitbucket\.org\:/https://bitbucket.org/} - providerUrlDifference="src" + rev="$(git rev-parse HEAD)" + git_pwd="$(git rev-parse --show-prefix)" + providerUrlDifference="src/${rev}/${git_pwd}" branch="?at=${branch}" # Atlassian Stash