Skip to content

refs: refuse to delete HEAD - #5360

Merged
pks-t merged 1 commit into
libgit2:masterfrom
josharian:fix-5357
Jan 17, 2020
Merged

refs: refuse to delete HEAD#5360
pks-t merged 1 commit into
libgit2:masterfrom
josharian:fix-5357

Conversation

@josharian

Copy link
Copy Markdown
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
Copy Markdown
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

pks-t commented Jan 17, 2020

Copy link
Copy Markdown
Member

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