Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git rev-list --tags --max-count=1 can return older tags first #4

Closed
martinsbalodis opened this issue Jan 10, 2020 · 1 comment
Closed

Comments

@martinsbalodis
Copy link

From git docs the git rev-list command returns commits in "reverse chronological order". After doing some git rebaseing I got into a situation where this command didn't return the latest tag but instead returned one before. As a result the action tried to create a tag that already existed.

This could be fixed by changing:

git rev-list --tags --max-count=1

to:

git rev-list --tags --topo-order --max-count=1
@mathieudutour
Copy link
Owner

Ah weird. Do you want to send a PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants