Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cr test5 #61

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
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
20 changes: 19 additions & 1 deletion start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,16 @@ if [ -d "$CLONE_DIR" ]; then
rm -rf $CLONE_DIR
eval $GIT_COMMAND
cd $CLONE_DIR

echo "The folder already exists but it is not a git repository - cloned successfully into $CLONE_DIR"
if [ -n "$REVISION" ]; then
if [ -n "$DEPTH" ]; then
echo 'git remote set-branches origin '*' - before'
git_retry git remote set-branches origin '*'
echo 'git remote set-branches origin '*' - after'
echo 'git fetch --depth=$DEPTH'
git_retry git fetch --depth=$DEPTH
echo 'git fetch --depth=$DEPTH - after'
fi
git_checkout
fi
fi
Expand All @@ -204,7 +212,17 @@ else
# Clone a fresh copy
eval $GIT_COMMAND
cd $CLONE_DIR
echo "cloned successfully into $CLONE_DIR"
if [ -n "$REVISION" ]; then
if [ -n "$DEPTH" ]; then
git_retry git remote set-branches origin '*'
cat .git/config
git_retry git remote set-branches origin "*"
cat .git/config
eval "git_retry git remote set-branches origin '*'"
cat .git/config
git_retry git fetch --depth=$DEPTH
fi
git_checkout
fi

Expand Down