Skip to content

Commit fa6f3f0

Browse files
committed
add comment
1 parent 1b87da4 commit fa6f3f0

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

start.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,8 +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-
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/*"
208211
fi
209212

210213
git remote set-head origin --auto

0 commit comments

Comments
 (0)