Skip to content

Commit 9bd1282

Browse files
committed
test8
1 parent fd13aea commit 9bd1282

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

start.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,12 @@ if [ -d "$CLONE_DIR" ]; then
200200
git_retry git remote prune origin
201201

202202
echo "Fetching the updates from origin"
203-
git_retry git fetch origin --tags --prune "+refs/tags/*:refs/tags/*"
203+
# git_retry git fetch origin --tags --prune "+refs/tags/*:refs/tags/*"
204+
if [ -n "$DEPTH" ]; then
205+
git_retry git fetch origin --prune "+refs/tags/*:refs/tags/*" --depth=$DEPTH
206+
else
207+
git_retry git fetch origin --prune "+refs/tags/*:refs/tags/*"
208+
fi
204209
git remote set-head origin --auto
205210

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

0 commit comments

Comments
 (0)