| skipped 59 lines |
60 | 60 | | # bitbucket |
61 | 61 | | elif grep -q bitbucket <<<$giturl; then |
62 | 62 | | giturl=${giturl/git\@bitbucket\.org\:/https://bitbucket.org/} |
| 63 | + | # handle SSH protocol (change ssh://https://bitbucket.org/user/repo to https://bitbucket.org/user/repo) |
| 64 | + | giturl=${giturl/#ssh\:\/\/git\@/https://} |
| 65 | + | |
63 | 66 | | rev="$(git rev-parse HEAD)" |
64 | 67 | | git_pwd="$(git rev-parse --show-prefix)" |
65 | 68 | | providerUrlDifference="src/${rev}/${git_pwd}" |
| skipped 48 lines |