forked from LaconicNetwork/kompose
Merge pull request #592 from cdrage/change-git-command
Use old git command
This commit is contained in:
commit
1c64b016dc
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user