diff --git a/service.yaml b/service.yaml index 65c948d..efcf655 100644 --- a/service.yaml +++ b/service.yaml @@ -1 +1 @@ -version: 10.1.28 +version: 10.1.29 diff --git a/start.sh b/start.sh index 86787f3..2e18b79 100644 --- a/start.sh +++ b/start.sh @@ -198,10 +198,15 @@ if [ -d "$CLONE_DIR" ]; then git clean -df git gc --force git_retry git remote prune origin - git_retry git fetch origin --tags --prune "+refs/tags/*:refs/tags/*" - echo "Fetching the updates from origin" - git_retry git fetch --tags + if [ -n "$SKIP_TAGS_ON_UPDATE" ]; then + echo "Fetching updates from origin${DEPTH:+ with depth $DEPTH}, skipping tags" + git_retry git fetch origin ${REVISION:+$REVISION} --no-tags ${DEPTH:+ --depth=$DEPTH} + else + echo "Fetching updates from origin" + git_retry git fetch origin --tags --prune "+refs/tags/*:refs/tags/*" ${DEPTH:+ --depth=$DEPTH} + fi + git remote set-head origin --auto if [ -n "$REVISION" ]; then @@ -213,7 +218,7 @@ if [ -d "$CLONE_DIR" ]; then # If the revision is identical to the current branch we can just reset it to the latest changes. This isn't needed when running detached if [ "$REVISION" == "$CURRENT_BRANCH" ]; then - echo 'Resetting current branch $REVISION to latest changes...' + echo "Resetting current branch $REVISION to latest changes..." git reset --hard origin/$REVISION fi fi