Skip to content

Commit

Permalink
Fix Run.sh Git pull
Browse files Browse the repository at this point in the history
  • Loading branch information
devopsmariocom authored Aug 16, 2018
1 parent cfdef9d commit ae5b543
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ TMP_FOLDER=/tmp-repo
KUBE_ATTRS=""
INTERVAL_SECONDS=180

git clone --quiet --depth=1 ${GIT_REPO} ${TMP_FOLDER}

if [ -n "${TARGET_NAMESPACE}" ]
then

Expand All @@ -26,10 +28,9 @@ fi
while true
do

echo Cloning git repo \"${GIT_REPO}\" to \"${TMP_FOLDER}\"

git clone --quiet --depth=1 ${GIT_REPO} ${TMP_FOLDER}
echo Pullin git repo \"${GIT_REPO}\" to \"${TMP_FOLDER}\"

cd ${TMP_FOLDER} && git pull --update-shallow

echo Applying \"${GIT_REPO}\" against \"${TARGET_NAMESPACE}\"

Expand Down

0 comments on commit ae5b543

Please sign in to comment.