Skip to content

refs: refuse to delete HEAD #5360

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 1 commit into from
Jan 17, 2020
Merged

refs: refuse to delete HEAD #5360

merged 1 commit into from
Jan 17, 2020

Conversation

josharian
Copy link
Contributor

This requires adding a new symbolic ref to the testrepo fixture.
Some of the existing tests attempt to delete HEAD, expecting a different failure. Introduce and use a non-HEAD symbolic ref instead.
Adjust a few other tests as needed.

Fixes #5357

This requires adding a new symbolic ref to the testrepo fixture.
Some of the existing tests attempt to delete HEAD, expecting a different failure. Introduce and use a non-HEAD symbolic ref instead.
Adjust a few other tests as needed.

Fixes libgit2#5357
@josharian josharian requested a review from ethomson January 15, 2020 21:57
@ethomson
Copy link
Member

LGTM. Going to hold this open for a bit longer for additional feedback.

@pks-t pks-t merged commit 47ac118 into libgit2:master Jan 17, 2020
@pks-t
Copy link
Member

pks-t commented Jan 17, 2020

Yup, makes sense to me. Thanks a lot, @josharian!

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

Successfully merging this pull request may close these issues.

reject attempts to delete HEAD
3 participants