From a4fdd4423676a936138a264cb708269e9598b693 Mon Sep 17 00:00:00 2001 From: eti-codefresh Date: Thu, 29 Aug 2024 23:14:14 +0300 Subject: [PATCH] test9 --- start.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/start.sh b/start.sh index d758100..03ea348 100644 --- a/start.sh +++ b/start.sh @@ -199,11 +199,13 @@ if [ -d "$CLONE_DIR" ]; then git gc --force git_retry git remote prune origin - echo "Fetching the updates from origin" + # git_retry git fetch origin --tags --prune "+refs/tags/*:refs/tags/*" if [ -n "$DEPTH" ]; then + echo "Fetching the updates from origin with depth $DEPTH" git_retry git fetch origin --prune "+refs/tags/*:refs/tags/*" --depth=$DEPTH else + echo "Fetching the updates from origin" git_retry git fetch origin --prune "+refs/tags/*:refs/tags/*" fi git remote set-head origin --auto