File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 1
- version : 10.1.28
1
+ version : 10.1.29
Original file line number Diff line number Diff line change @@ -198,10 +198,15 @@ if [ -d "$CLONE_DIR" ]; then
198
198
git clean -df
199
199
git gc --force
200
200
git_retry git remote prune origin
201
- git_retry git fetch origin --tags --prune " +refs/tags/*:refs/tags/*"
202
201
203
- echo " Fetching the updates from origin"
204
- git_retry git fetch --tags
202
+ if [ -n " $SKIP_TAGS_ON_UPDATE " ]; then
203
+ echo " Fetching updates from origin${DEPTH: + with depth $DEPTH } , skipping tags"
204
+ git_retry git fetch origin ${REVISION: +$REVISION } --no-tags ${DEPTH: + --depth=$DEPTH }
205
+ else
206
+ echo " Fetching updates from origin"
207
+ git_retry git fetch origin --tags --prune " +refs/tags/*:refs/tags/*" ${DEPTH: + --depth=$DEPTH }
208
+ fi
209
+
205
210
git remote set-head origin --auto
206
211
207
212
if [ -n " $REVISION " ]; then
@@ -213,7 +218,7 @@ if [ -d "$CLONE_DIR" ]; then
213
218
214
219
# If the revision is identical to the current branch we can just reset it to the latest changes. This isn't needed when running detached
215
220
if [ " $REVISION " == " $CURRENT_BRANCH " ]; then
216
- echo ' Resetting current branch $REVISION to latest changes...'
221
+ echo " Resetting current branch $REVISION to latest changes..."
217
222
git reset --hard origin/$REVISION
218
223
fi
219
224
fi
You can’t perform that action at this time.
0 commit comments