From 57b2ae112f66dc32adbe98752c93f68c440fd199 Mon Sep 17 00:00:00 2001 From: Alexander Trost Date: Sun, 19 May 2019 20:50:16 +0200 Subject: [PATCH] tests: fix git describe repo path in k8s-vagrant-multi-node script This fixs that the `git describe` is run with the `-C REPO_PATH` flag to correctly get the latest tag of the k8s-vagrant-multi-node repo and not the Rook repository. Signed-off-by: Alexander Trost --- tests/scripts/k8s-vagrant-multi-node.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/scripts/k8s-vagrant-multi-node.sh b/tests/scripts/k8s-vagrant-multi-node.sh index ec78be6d4..e091f13da 100755 --- a/tests/scripts/k8s-vagrant-multi-node.sh +++ b/tests/scripts/k8s-vagrant-multi-node.sh @@ -11,7 +11,7 @@ function init() { mkdir -p "${REPO_DIR}" git clone https://github.com/galexrt/k8s-vagrant-multi-node.git "${REPO_DIR}" # checkout latest tag of the repo initially after clone - git -C "${REPO_DIR}" checkout "$(git describe --tags `git rev-list --tags --max-count=1`)" + git -C "${REPO_DIR}" checkout "$(git -C "${REPO_DIR}" describe --tags `git rev-list --tags --max-count=1`)" else git -C "${REPO_DIR}" pull || { echo "git pull failed with exit code $?. continuing as the repo is already there ..."; } fi