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 <galexrt@googlemail.com>
This commit is contained in:
Alexander Trost committed 2019-05-19 20:51:37 +02:00
1 parent 5c5a62bd01
commit 57b2ae112f
1 file changed
+1 -1
+1 -1
View File
@@ -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