Skip to content

Commit 2b7ca7a

Browse files
committed
add --depth=$DEPTH
1 parent 7b55244 commit 2b7ca7a

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
@@ -198,10 +198,10 @@ if [ -d "$CLONE_DIR" ]; then
198198
git clean -df
199199
git gc --force
200200
git_retry git remote prune origin
201-
git_retry git fetch origin --tags --prune "+refs/tags/*:refs/tags/*"
201+
git_retry git fetch origin --tags --prune "+refs/tags/*:refs/tags/*" --depth=$DEPTH
202202

203203
echo "Fetching the updates from origin"
204-
git_retry git fetch --tags
204+
git_retry git fetch --tags --depth=$DEPTH
205205
git remote set-head origin --auto
206206

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

0 commit comments

Comments
 (0)