Convert ssh:// link to a https:// one

The script was failing on a Bitbucket repo using ssh instead of https. Now it should be fixed.
This commit is contained in:
Lilian Besson 2016-07-08 13:07:48 +02:00 committed by GitHub
parent f73d3e6aca
commit 421888c04a

View file

@ -31,6 +31,9 @@ if [ -z "$giturl" ]; then
exit 1
fi
# Convert ssh:// link to a https:// one
giturl=$( echo $giturl | sed s_'ssh://git@'_'https://'_ )
# get current branch
if [ -z "$2" ]; then
branch=$(git symbolic-ref -q --short HEAD)