Skip to content

Commit

Permalink
Merge pull request #9 from elmariofredo/elmariofredo-patch-2
Browse files Browse the repository at this point in the history
Feat run.sh Add branch select support
  • Loading branch information
elmariofredo authored Dec 14, 2018
2 parents 773b377 + 4abbc90 commit 341241e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

GIT_REPO=$1
TARGET_NAMESPACE=$2
GIT_BRANCH=${3-master}

TMP_FOLDER=/tmp-repo
KUBE_ATTRS=""
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 341241e

Please sign in to comment.