Merge pull request #36 from Naereen/patch-1

Convert ssh:// link to a https:// one
This commit is contained in:
David O'Trakoun 2016-07-08 15:39:48 -04:00 committed by GitHub
commit 55a5b96a9f

View file

@ -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}"