File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -200,14 +200,15 @@ if [ -d "$CLONE_DIR" ]; then
200
200
git_retry git remote prune origin
201
201
202
202
if [ -n " $SKIP_TAGS_ON_UPDATE " ]; then
203
- echo " Fetching updates from origin, skipping tags"
204
- git_retry git fetch origin --prune --no-tags
203
+ echo " Fetching updates from origin ${DEPTH : + with depth $DEPTH } , skipping tags"
204
+ git_retry git fetch origin --prune --no-tags ${DEPTH : + --depth= $DEPTH }
205
205
else
206
- echo " Fetching updates from origin"
207
- git_retry git fetch origin --tags --prune " +refs/tags/*:refs/tags/*"
206
+ echo " Fetching updates from origin"
207
+ git_retry git fetch origin --tags --prune " +refs/tags/*:refs/tags/*"
208
208
fi
209
209
210
210
211
+
211
212
git remote set-head origin --auto
212
213
213
214
if [ -n " $REVISION " ]; then
You can’t perform that action at this time.
0 commit comments