Skip to content

Commit 8e14a18

Browse files
fix fetch with revision without change clone logic (#71)
* fix fetch with revision without change clone logic * bump * fix fetch with revision without change clone logic
1 parent 5a5156b commit 8e14a18

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

service.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version: 10.1.24
1+
version: 10.1.25

start.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ if [ -d "$CLONE_DIR" ]; then
224224
if [ -n "$REVISION" ]; then
225225
if [ -n "$DEPTH" ]; then
226226
git_retry git remote set-branches origin "*"
227-
git_retry git fetch --depth=$DEPTH
227+
git_retry git origin $REVISION fetch --depth=$DEPTH
228228
fi
229229
git_checkout
230230
fi
@@ -237,7 +237,7 @@ else
237237
if [ -n "$REVISION" ]; then
238238
if [ -n "$DEPTH" ]; then
239239
git_retry git remote set-branches origin "*"
240-
git_retry git fetch --depth=$DEPTH
240+
git_retry git fetch origin $REVISION --depth=$DEPTH
241241
fi
242242
git_checkout
243243
fi

0 commit comments

Comments
 (0)