Skip to content

Commit b0041e2

Browse files
committed
git fetch --tags
1 parent fa6f3f0 commit b0041e2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

start.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -203,11 +203,11 @@ if [ -d "$CLONE_DIR" ]; then
203203
echo "Fetching updates from origin${DEPTH:+ with depth $DEPTH}, skipping tags"
204204
git_retry git fetch origin ${REVISION:+$REVISION} --prune --no-tags ${DEPTH:+ --depth=$DEPTH}
205205
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".
209208
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
211211
fi
212212

213213
git remote set-head origin --auto

0 commit comments

Comments
 (0)