File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -198,15 +198,10 @@ if [ -d "$CLONE_DIR" ]; then
198
198
git clean -df
199
199
git gc --force
200
200
git_retry git remote prune origin
201
- # Check if DEPTH is set (and non-zero) to decide on the fetch strategy
202
- if [ -n " $DEPTH " ]; then
203
- echo " Fetching updates with depth $DEPTH "
204
- git_retry git fetch --depth=$DEPTH origin --tags --prune " +refs/tags/*:refs/tags/*"
205
- else
206
- echo " Fetching full updates"
207
- git_retry git fetch origin --tags --prune " +refs/tags/*:refs/tags/*"
208
- fi
209
201
202
+ echo " Fetching the updates from origin"
203
+ git_retry git fetch origin --tags --prune " +refs/tags/*:refs/tags/*"
204
+ git_retry git fetch --tags
210
205
git remote set-head origin --auto
211
206
212
207
if [ -n " $REVISION " ]; then
You can’t perform that action at this time.
0 commit comments