Skip to content

Commit ce1ec84

Browse files
committed
test13
1 parent 209d664 commit ce1ec84

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
@@ -199,15 +199,10 @@ if [ -d "$CLONE_DIR" ]; then
199199
git gc --force
200200
git_retry git remote prune origin
201201

202+
echo "Fetching the updates from origin with${DEPTH:+ depth $DEPTH}"
203+
204+
git_retry git fetch origin ${REVISION:-'HEAD'} --prune --depth=${DEPTH:-0} --no-tags
202205

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

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

0 commit comments

Comments
 (0)