Skip to content

Commit 2d7b2cc

Browse files
feat: add REVISION to git fetch cmd (#86)
1 parent cf2be9a commit 2d7b2cc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

service.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version: 10.1.29
1+
version: 10.1.30

start.sh

Lines changed: 3 additions & 3 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 ${REVISION:+$REVISION} --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/*" ${DEPTH:+ --depth=$DEPTH}
206+
echo "Fetching updates from origin${DEPTH:+ with depth $DEPTH}"
207+
git_retry git fetch origin ${REVISION:+$REVISION} --tags --prune "+refs/tags/*:refs/tags/*" ${DEPTH:+ --depth=$DEPTH}
208208
fi
209209

210210
git remote set-head origin --auto
@@ -233,7 +233,7 @@ if [ -d "$CLONE_DIR" ]; then
233233
if [ -n "$REVISION" ]; then
234234
if [ -n "$DEPTH" ]; then
235235
git_retry git remote set-branches origin "*"
236-
git_retry git origin $REVISION fetch --depth=$DEPTH
236+
git_retry git fetch origin $REVISION --depth=$DEPTH
237237
fi
238238
git_checkout
239239
fi

0 commit comments

Comments
 (0)