File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -199,15 +199,10 @@ if [ -d "$CLONE_DIR" ]; then
199
199
git gc --force
200
200
git_retry git remote prune origin
201
201
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
202
205
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
211
206
git remote set-head origin --auto
212
207
213
208
if [ -n " $REVISION " ]; then
You can’t perform that action at this time.
0 commit comments