Skip to content

"git semver get" does not fetch the right tag #45

@stesix

Description

@stesix

If I generate a bunch of pre-release tags and then create a release tag, the git semver get is not able to fetch the correct last generated tag. e.g.

test env preparation

mkdir test && cd test && git init
echo 'test' > test
git add test
git commit -m "test"

test

git tag 1.0.0
git tag 1.0.1-alpha
git tag 1.0.1-beta
git tag 1.0.1-rc
git tag 1.0.1

git semver get

I'd expect to see 1.0.1 as a result but I'm getting 1.0.1-rc which IMHO is not correct.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions