From 4abbc90f86d24e7fa7196c8af70b152faa05c71e Mon Sep 17 00:00:00 2001 From: Mario Vejlupek Date: Fri, 14 Dec 2018 01:24:56 +0100 Subject: [PATCH] Feat run.sh Add branch select support --- run.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/run.sh b/run.sh index e8231d2..5a1dfa5 100755 --- a/run.sh +++ b/run.sh @@ -7,6 +7,7 @@ GIT_REPO=$1 TARGET_NAMESPACE=$2 +GIT_BRANCH=${3-master} TMP_FOLDER=/tmp-repo KUBE_ATTRS="" @@ -37,7 +38,7 @@ do then log "0" "Cloning git repo '${GIT_REPO}' to '${TMP_FOLDER}'" - exec_log "git clone --verbose --depth=1 ${GIT_REPO} ${TMP_FOLDER}" + exec_log "git clone --verbose --single-branch --branch ${GIT_BRANCH} ${GIT_REPO} ${TMP_FOLDER}" fi