Use old git command

Some versions of git don't have git-url (case in point on Debian 8, no
get-url on packaged git).

Use old command in getting URL.
This commit is contained in:
Charlie Drage 2017-05-09 08:55:55 -04:00
parent ebd9dcf207
commit f0c4addbaf

View File

@ -20,7 +20,7 @@ source $KOMPOSE_ROOT/script/test/cmd/lib.sh
# Get current branch and remote url of git repository # Get current branch and remote url of git repository
branch=$(git branch | grep \* | cut -d ' ' -f2-) branch=$(git branch | grep \* | cut -d ' ' -f2-)
uri=$(git remote get-url origin) uri=$(git config --get remote.origin.url)
if [[ $uri != *".git"* ]]; then if [[ $uri != *".git"* ]]; then
uri="${uri}.git" uri="${uri}.git"
fi fi