Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion service.yaml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version: 10.1.19
version: 10.1.20
12 changes: 10 additions & 2 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ git_retry () {
(
set +e
RETRY_ON_SIGNAL=128
COMMAND=$@
COMMAND=("$@") # Store the command and arguments as an array
local TRY_NUM=1 MAX_TRIES=4 RETRY_WAIT=5
until [[ "$TRY_NUM" -ge "$MAX_TRIES" ]]; do
$COMMAND
"${COMMAND[@]}" # Use "${COMMAND[@]}" to preserve arguments with quotes
EXIT_CODE=$?
if [[ $EXIT_CODE == 0 ]]; then
break
Expand Down Expand Up @@ -196,6 +196,10 @@ if [ -d "$CLONE_DIR" ]; then
cd $CLONE_DIR

if [ -n "$REVISION" ]; then
if [ -n "$DEPTH" ]; then
git_retry git remote set-branches origin "*"
git_retry git fetch --depth=$DEPTH
fi
git_checkout
fi
fi
Expand All @@ -205,6 +209,10 @@ else
eval $GIT_COMMAND
cd $CLONE_DIR
if [ -n "$REVISION" ]; then
if [ -n "$DEPTH" ]; then
git_retry git remote set-branches origin "*"
git_retry git fetch --depth=$DEPTH
fi
git_checkout
fi

Expand Down