Skip to content

Commit

Permalink
Add a force flag to git fetch tags
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimir-gladkii committed Mar 5, 2024
1 parent e037ce4 commit 881d7bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ make_version() {
BRANCH=${GITHUB_HEAD_REF:-${GITHUB_REF##*/}} # Branch or pr or tag
TAG=$( [[ $GITHUB_REF == refs/tags/* ]] && echo "${GITHUB_REF##refs/tags/}" || echo "" )

git fetch --tags
git fetch --tags --force
git fetch --prune --unshallow || true

LAST_RELEASE=$(get_last_release "$GIT_SHA")
Expand Down

0 comments on commit 881d7bd

Please sign in to comment.