Skip to content

Commit

Permalink
test9
Browse files Browse the repository at this point in the history
  • Loading branch information
eti-codefresh committed Aug 29, 2024
1 parent 9bd1282 commit a4fdd44
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a4fdd44

Please sign in to comment.