From f0c4addbaf314b138ae68a4b205b80cad1ea75fc Mon Sep 17 00:00:00 2001 From: Charlie Drage Date: Tue, 9 May 2017 08:55:55 -0400 Subject: [PATCH] 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. --- script/test/cmd/tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/test/cmd/tests.sh b/script/test/cmd/tests.sh index 07aed44c..fca5999d 100755 --- a/script/test/cmd/tests.sh +++ b/script/test/cmd/tests.sh @@ -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