File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -203,11 +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
- # 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}
206
+ # In order to not change logic that already working im keeping git_retry git fetch --tags
207
+ # This command fetches updates from all configured remotes in your repository, not just from "origin".
209
208
echo " Fetching updates from origin"
210
- git_retry git fetch --tags --prune " +refs/tags/*:refs/tags/*"
209
+ git_retry git fetch origin --tags --prune " +refs/tags/*:refs/tags/*"
210
+ git fetch --tags
211
211
fi
212
212
213
213
git remote set-head origin --auto
You can’t perform that action at this time.
0 commit comments