Skip to content

Commit 47189ea

Browse files
committed
test6
1 parent ed4e4e8 commit 47189ea

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

start.sh

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -198,15 +198,10 @@ if [ -d "$CLONE_DIR" ]; then
198198
git clean -df
199199
git gc --force
200200
git_retry git remote prune origin
201-
# Check if DEPTH is set (and non-zero) to decide on the fetch strategy
202-
if [ -n "$DEPTH" ]; then
203-
echo "Fetching updates with depth $DEPTH"
204-
git_retry git fetch --depth=$DEPTH origin --tags --prune "+refs/tags/*:refs/tags/*"
205-
else
206-
echo "Fetching full updates"
207-
git_retry git fetch origin --tags --prune "+refs/tags/*:refs/tags/*"
208-
fi
209201

202+
echo "Fetching the updates from origin"
203+
git_retry git fetch origin --tags --prune "+refs/tags/*:refs/tags/*"
204+
git_retry git fetch --tags
210205
git remote set-head origin --auto
211206

212207
if [ -n "$REVISION" ]; then

0 commit comments

Comments
 (0)