diff --git a/service.yaml b/service.yaml index e7bf1a0..9bd68bc 100644 --- a/service.yaml +++ b/service.yaml @@ -1 +1 @@ -version: 10.1.19 +version: 10.1.20 diff --git a/start.sh b/start.sh index 9941ecf..ec13375 100644 --- a/start.sh +++ b/start.sh @@ -194,8 +194,16 @@ if [ -d "$CLONE_DIR" ]; then rm -rf $CLONE_DIR eval $GIT_COMMAND cd $CLONE_DIR - + echo "The folder already exists but it is not a git repository - cloned successfully into $CLONE_DIR" if [ -n "$REVISION" ]; then + if [ -n "$DEPTH" ]; then + echo 'git remote set-branches origin '*' - before' + git_retry git remote set-branches origin '*' + echo 'git remote set-branches origin '*' - after' + echo 'git fetch --depth=$DEPTH' + git_retry git fetch --depth=$DEPTH + echo 'git fetch --depth=$DEPTH - after' + fi git_checkout fi fi @@ -204,7 +212,17 @@ else # Clone a fresh copy eval $GIT_COMMAND cd $CLONE_DIR + echo "cloned successfully into $CLONE_DIR" if [ -n "$REVISION" ]; then + if [ -n "$DEPTH" ]; then + git_retry git remote set-branches origin '*' + cat .git/config + git_retry git remote set-branches origin "*" + cat .git/config + eval "git_retry git remote set-branches origin '*'" + cat .git/config + git_retry git fetch --depth=$DEPTH + fi git_checkout fi