Skip to content

Commit

Permalink
fix: changed sort order strategy for tags
Browse files Browse the repository at this point in the history
  • Loading branch information
davidsonbrsilva committed Apr 25, 2024
1 parent 73ce2ec commit 9295f0f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
git fetch --unshallow origin --tags > /dev/null 2>&1 || { echo "Failed to fetch tags from remote."; exit 1; }

# Get the last repository tag.
last_version=$(git tag --sort=version:refname | grep -v '^v' | tail -n 1)
last_version=$(git tag --sort=committerdate | grep -v '^v' | tail -n 1)

if [ -z "$last_version" ]; then
echo "No found version associated with this branch."
Expand Down

0 comments on commit 9295f0f

Please sign in to comment.