Skip to content

Commit

Permalink
CR-3258 (#45)
Browse files Browse the repository at this point in the history
* CR-3258

* WIP

* WIP

* WIP

* WIP

* WIP

* WIP
  • Loading branch information
eti-codefresh authored Jan 5, 2023
1 parent b5518ab commit aca2641
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion service.yaml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version: 10.1.16
version: 10.1.17
11 changes: 8 additions & 3 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,12 @@ if [ -n "$SPARE_CHECKOUT" ]; then
exit 0
fi

if [ -n "$DEPTH" ]; then
GIT_COMMAND="git_retry git clone $REPO $CLONE_DIR --depth=$DEPTH"
else
GIT_COMMAND="git_retry git clone $REPO $CLONE_DIR"
fi

# Check if the cloned dir already exists from previous builds
if [ -d "$CLONE_DIR" ]; then

Expand Down Expand Up @@ -174,7 +180,7 @@ if [ -d "$CLONE_DIR" ]; then
# Clean folder and clone a fresh copy on current directory
cd ..
rm -rf $CLONE_DIR
git_retry git clone $REPO $CLONE_DIR
eval $GIT_COMMAND
cd $CLONE_DIR

if [ -n "$REVISION" ]; then
Expand All @@ -184,9 +190,8 @@ if [ -d "$CLONE_DIR" ]; then
else

# Clone a fresh copy
git_retry git clone $REPO $CLONE_DIR
eval $GIT_COMMAND
cd $CLONE_DIR

if [ -n "$REVISION" ]; then
git checkout $REVISION
fi
Expand Down

0 comments on commit aca2641

Please sign in to comment.