Merge pull request #592 from cdrage/change-git-command

Use old git command
This commit is contained in:
Suraj Deshmukh 2017-05-18 09:12:09 +05:30 committed by GitHub
commit 1c64b016dc

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