8000 revparse: ensure bare '@' is truly bare by ethomson · Pull Request #6742 · libgit2/libgit2 · GitHub
[go: up one dir, main page]

Skip to content

revparse: ensure bare '@' is truly bare #6742

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

Merged
merged 2 commits into from
Feb 20, 2024
Merged

revparse: ensure bare '@' is truly bare #6742

merged 2 commits into from
Feb 20, 2024

Conversation

ethomson
Copy link
Member

Support a revspec of '@' to mean 'HEAD', but ensure that it's at the start of the revspec. Previously we were erroneously allowing 'foo@' to mean 'HEAD' as well. Instead, 'foo@' should be rejected.

Fixes #6735

Support a revspec of '@' to mean 'HEAD', but ensure that it's at the
start of the revspec. Previously we were erroneously allowing 'foo@' to
mean 'HEAD' as well. Instead, 'foo@' should be rejected.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

git_revparse_single ignores content before trailing @
1 participant
0