From c03729c5f80dede15196a244d3785ec489a6770b Mon Sep 17 00:00:00 2001 From: eti-codefresh Date: Wed, 25 Sep 2024 09:03:30 +0300 Subject: [PATCH] add SKIP_TAGS_ON_UPDATE remove REVISION and depth in other case --- service.yaml | 2 +- start.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/service.yaml b/service.yaml index 1727721..e4d535f 100644 --- a/service.yaml +++ b/service.yaml @@ -1 +1 @@ -version: 10.1.30 +version: 10.1.31 diff --git a/start.sh b/start.sh index 4ebbeac..394275c 100644 --- a/start.sh +++ b/start.sh @@ -203,8 +203,8 @@ if [ -d "$CLONE_DIR" ]; 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${DEPTH:+ with depth $DEPTH}" - git_retry git fetch origin ${REVISION:+$REVISION} --tags --prune "+refs/tags/*:refs/tags/*" ${DEPTH:+ --depth=$DEPTH} + echo "Fetching updates from origin" + git_retry git fetch origin --tags --prune "+refs/tags/*:refs/tags/*" fi git remote set-head origin --auto