File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -203,8 +203,11 @@ if [ -d "$CLONE_DIR" ]; then
203
203
echo " Fetching updates from origin${DEPTH: + with depth $DEPTH } , skipping tags"
204
204
git_retry git fetch origin ${REVISION: +$REVISION } --prune --no-tags ${DEPTH: + --depth=$DEPTH }
205
205
else
206
- echo " Fetching updates from origin${DEPTH: + with depth $DEPTH } "
207
- git_retry git fetch origin --tags --prune " +refs/tags/*:refs/tags/*" ${DEPTH: + --depth=$DEPTH }
206
+ # in order to not change logic that already working we not specifying depth & origin
207
+ # it will be better to use this cmd, but with the new flag it will work as the following without tags as well
208
+ # git_retry git fetch origin --tags --prune "+refs/tags/*:refs/tags/*" ${DEPTH:+ --depth=$DEPTH}
209
+ echo " Fetching updates from origin"
210
+ git_retry git fetch --tags --prune " +refs/tags/*:refs/tags/*"
208
211
fi
209
212
210
213
git remote set-head origin --auto
You can’t perform that action at this time.
0 commit comments