forked from LaconicNetwork/kompose
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:
parent
ebd9dcf207
commit
f0c4addbaf
@ -20,7 +20,7 @@ source $KOMPOSE_ROOT/script/test/cmd/lib.sh
|
||||
# Get current branch and remote url of git repository
|
||||
branch=$(git branch | grep \* | cut -d ' ' -f2-)
|
||||
|
||||
uri=$(git remote get-url origin)
|
||||
uri=$(git config --get remote.origin.url)
|
||||
if [[ $uri != *".git"* ]]; then
|
||||
uri="${uri}.git"
|
||||
fi
|
||||
|
||||
Loading…
Reference in New Issue
Block a user