Skip to content
Discussion options

You must be logged in to vote

Thanks for the reproduction and the before/after on 2.12 and 2.13. They made this quick to pin down. It's fixed in #1869, which ships in the next release (v2.14.0).

The fix is the first one you suggested. hk now sets HK=0 on the git restore that puts untracked files back from the stash. The launchers hk install writes already exit when HK=0, so no second hk starts. Hooks that aren't hk's still run as before. A new test commits with an untracked file and a post-checkout step, and it confirms the step no longer runs.

AI-assisted β€” Tool: Claude Code; model: anthropic/claude-opus-5-5; version: unavailable.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

jdx
Nov 18, 2026 — with coder-jdx
Maintainer

You must be logged in to vote
1 reply
@zekefast
Comment options

Answer selected by zekefast
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants