Skip to content

Commit 65165f3

Browse files
committed
update cmd with depth
1 parent 1359bda commit 65165f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

start.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,8 @@ if [ -d "$CLONE_DIR" ]; then
203203
echo "Fetching updates from origin ${DEPTH:+ with depth $DEPTH}, skipping tags"
204204
git_retry git fetch origin --prune --no-tags ${DEPTH:+ --depth=$DEPTH}
205205
else
206-
echo "Fetching updates from origin"
207-
git_retry git fetch origin --tags --prune "+refs/tags/*:refs/tags/*"
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}
208208
fi
209209

210210

0 commit comments

Comments
 (0)