Skip to content

Commit

Permalink
fix fetch with revision without change clone logic (#71)
Browse files Browse the repository at this point in the history
* fix fetch with revision without change clone logic

* bump

* fix fetch with revision without change clone logic
  • Loading branch information
kim-codefresh authored Dec 28, 2023
1 parent 5a5156b commit 8e14a18
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion service.yaml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version: 10.1.24
version: 10.1.25
4 changes: 2 additions & 2 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ if [ -d "$CLONE_DIR" ]; then
if [ -n "$REVISION" ]; then
if [ -n "$DEPTH" ]; then
git_retry git remote set-branches origin "*"
git_retry git fetch --depth=$DEPTH
git_retry git origin $REVISION fetch --depth=$DEPTH
fi
git_checkout
fi
Expand All @@ -237,7 +237,7 @@ else
if [ -n "$REVISION" ]; then
if [ -n "$DEPTH" ]; then
git_retry git remote set-branches origin "*"
git_retry git fetch --depth=$DEPTH
git_retry git fetch origin $REVISION --depth=$DEPTH
fi
git_checkout
fi
Expand Down

0 comments on commit 8e14a18

Please sign in to comment.