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

HEAD~1 is no longer treated as a valid ref #3265

Closed
neoeinstein opened this issue Aug 26, 2024 · 2 comments · Fixed by #3266
Closed

HEAD~1 is no longer treated as a valid ref #3265

neoeinstein opened this issue Aug 26, 2024 · 2 comments · Fixed by #3266
Labels
Bug Something isn't working

Comments

@neoeinstein
Copy link

GitHub repository with your minimal reproducible example

https://github.com/bufbuild/buf/

Commands

buf breaking <URL>#ref=HEAD~1

Output

fatal: invalid refspec 'HEAD~1'

Expected Output

No failures. This worked correctly and as expected in 1.34. Appears related to #3197 and #3215, but with a different appearance.

Anything else?

Is there an alternate formulation we should be using to check against the prior commit on a branch?

@emcfarlane
Copy link
Contributor

This syntax should work. Fixing. An alternative for now is to specify the branch buf breaking --against '.git#branch=main,ref=HEAD~'.

@emcfarlane
Copy link
Contributor

The fix has been released in v1.39.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants