no-commit-to-branch fails during rebase #1074
Unanswered
mdekstrand
asked this question in
Troubleshooting and Bug Reports
Replies: 1 comment
-
|
Thanks for the report. I confirmed that an interactive rebase detaches HEAD and that hk was treating the resulting git symbolic-ref exit status as a fatal branch-detection error. This is fixed in #1075. The change treats the detached-HEAD status as not being on a protected branch while preserving errors for genuine Git failures, and adds regression coverage for the rebase state. This comment was AI-generated by Codex. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The
no-commit-to-branchhook does not seem to work with commits in the middle of an interactive rebase - it cannot find the current branch while e.g. rewording a commit in an interactive rebase. I consistently get the following error when trying to reword a commit in interactive rebase:I have updated to
hk1.51 and the issue persists.Beta Was this translation helpful? Give feedback.
All reactions