-
Lilian Besson committed with GitHub 8 years ago
1 parent 421888c0
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
-
skipped 30 lines 31 31 exit 1 32 32 fi 33 33 34 - # Convert ssh:// link to a https:// one 35 - giturl=$( echo $giturl | sed s_'ssh://git@'_'https://'_ ) 36 - 37 34 # get current branch 38 35 if [ -z "$2" ]; then 39 36 branch=$(git symbolic-ref -q --short HEAD) skipped 23 lines 63 60 # bitbucket 64 61 elif grep -q bitbucket <<<$giturl; then 65 62 giturl=${giturl/git\@bitbucket\.org\:/https://bitbucket.org/} 63 + # handle SSH protocol (links like ssh://[email protected]/user/repo) 64 + giturl=${giturl/#ssh\:\/\/git\@bitbucket\.org\//https://bitbucket.org/} 65 + 66 66 rev="$(git rev-parse HEAD)" 67 67 git_pwd="$(git rev-parse --show-prefix)" 68 68 providerUrlDifference="src/${rev}/${git_pwd}" skipped 48 lines