Skip to content

Commit f02cc87

Browse files
committed
add ${DEPTH:+ --depth=$DEPTH}
1 parent 88eb361 commit f02cc87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

start.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ if [ -d "$CLONE_DIR" ]; then
204204
git_retry git fetch origin ${REVISION:+$REVISION} --no-tags ${DEPTH:+ --depth=$DEPTH}
205205
else
206206
echo "Fetching updates from origin"
207-
git_retry git fetch origin --tags --prune "+refs/tags/*:refs/tags/*"
207+
git_retry git fetch origin --tags --prune "+refs/tags/*:refs/tags/*" ${DEPTH:+ --depth=$DEPTH}
208208
fi
209209

210210
git remote set-head origin --auto

0 commit comments

Comments
 (0)