Skip to content

Commit

Permalink
${REVISION:+$REVISION}
Browse files Browse the repository at this point in the history
  • Loading branch information
eti-codefresh committed Sep 2, 2024
1 parent 65165f3 commit a83ee5d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -200,10 +200,10 @@ if [ -d "$CLONE_DIR" ]; then
git_retry git remote prune origin

if [ -n "$SKIP_TAGS_ON_UPDATE" ]; then
echo "Fetching updates from origin ${DEPTH:+ with depth $DEPTH}, skipping tags"
git_retry git fetch origin --prune --no-tags ${DEPTH:+ --depth=$DEPTH}
echo "Fetching updates from origin${DEPTH:+ with depth $DEPTH}, skipping tags"
git_retry git fetch origin ${REVISION:+$REVISION} --prune --no-tags ${DEPTH:+ --depth=$DEPTH}
else
echo "Fetching updates from origin ${DEPTH:+ with depth $DEPTH}"
echo "Fetching updates from origin${DEPTH:+ with depth $DEPTH}"
git_retry git fetch origin --tags --prune "+refs/tags/*:refs/tags/*" ${DEPTH:+ --depth=$DEPTH}
fi

Expand Down

0 comments on commit a83ee5d

Please sign in to comment.