Skip to content

Commit

Permalink
feat: add REVISION to git fetch cmd (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
eti-codefresh authored Sep 16, 2024
1 parent cf2be9a commit 2d7b2cc
Show file tree
Hide file tree
Showing 2 changed files with 4 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.29
version: 10.1.30
6 changes: 3 additions & 3 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,8 @@ if [ -d "$CLONE_DIR" ]; then
echo "Fetching updates from origin${DEPTH:+ with depth $DEPTH}, skipping tags"
git_retry git fetch origin ${REVISION:+$REVISION} --no-tags ${DEPTH:+ --depth=$DEPTH}
else
echo "Fetching updates from origin"
git_retry git fetch origin --tags --prune "+refs/tags/*:refs/tags/*" ${DEPTH:+ --depth=$DEPTH}
echo "Fetching updates from origin${DEPTH:+ with depth $DEPTH}"
git_retry git fetch origin ${REVISION:+$REVISION} --tags --prune "+refs/tags/*:refs/tags/*" ${DEPTH:+ --depth=$DEPTH}
fi

git remote set-head origin --auto
Expand Down Expand Up @@ -233,7 +233,7 @@ if [ -d "$CLONE_DIR" ]; then
if [ -n "$REVISION" ]; then
if [ -n "$DEPTH" ]; then
git_retry git remote set-branches origin "*"
git_retry git origin $REVISION fetch --depth=$DEPTH
git_retry git fetch origin $REVISION --depth=$DEPTH
fi
git_checkout
fi
Expand Down

0 comments on commit 2d7b2cc

Please sign in to comment.