You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[CHORE] doctor comments still claim worktree-start unsets core.hooksPath on purpose #1469
area:workspaceWorkspace tooling, justfile, templateschoreGeneral tasks (e.g. update dependencies, contact a manufacturer, read a paper)docsImprovements or additions to documentationeffort:smallLess than 1 hourpriority:lowNice to have, do when capacity allowssemver:patchBug fix, backward-compatible
After #1463 (PR #1464), just worktree-start no longer unsets core.hooksPath — when the setting exists it is left untouched and the tracked .githooks shims cover the new worktree; the prek install path survives only as a fallback for repos with no hooks path configured.
The doctor recipe comments added by #1454 still describe the pre-fix behavior. In both justfile and the scaffolded assets/workspace/justfile, the linked-worktree branch is annotated along the lines of "just worktree-start unsets core.hooksPath in the worktree on purpose — prek refuses to install its shims while it is set — and installs those shims into the shared git dir instead."
The doctor logic is still correct: the shared-hooks PASS branch legitimately covers pre-fix worktrees and the fallback path, and a post-#1463 worktree simply hits the first branch (PASS git hooks: core.hooksPath -> .githooks). Only the comments are wrong.
Why it matters
The #1430 → #1454 → #1461 → #1463 chain shows how much debugging in this area leans on these comments being truthful. A comment asserting that the repo-wide unset "is on purpose" would actively mislead the next investigation into hook state.
Proposed Solution
Update the comments in both copies to describe the post-#1463 reality: the unset+install path is the fallback for repos without a configured hooks path, and the shared-.git/hooks PASS branch also covers worktrees created before #1463. Comment-only change, no behavior delta, no test or changelog impact.
Scope note: the same stale pre-#1463 claim also lives in test comments — tests/bats/doctor.bats, tests/bats/consumer-doctor.bats, tests/test_flake_hooks.py. Folding those into this issue's PR (same stale statement, comment-only, one traceable unit) rather than filing a separate issue.
Fixed by PR #1471, squash-merged into release/1.8.0 (release-branch merges don't auto-close). Doctor comments in both justfile copies now describe the post-#1463 behavior, and the same stale claim was fixed in doctor.bats, consumer-doctor.bats, and test_flake_hooks.py per the scope note above. Ships in 1.8.0.
area:workspaceWorkspace tooling, justfile, templateschoreGeneral tasks (e.g. update dependencies, contact a manufacturer, read a paper)docsImprovements or additions to documentationeffort:smallLess than 1 hourpriority:lowNice to have, do when capacity allowssemver:patchBug fix, backward-compatible
Activity
c-vigo commentedon Aug 12, 2026
Scope note: the same stale pre-#1463 claim also lives in test comments — tests/bats/doctor.bats, tests/bats/consumer-doctor.bats, tests/test_flake_hooks.py. Folding those into this issue's PR (same stale statement, comment-only, one traceable unit) rather than filing a separate issue.
docs(workspace): fix stale doctor comments on worktree hooksPath hand…
docs(testing): fix the same stale worktree hooksPath claim in test co…
docs(workspace): fix stale doctor comments on worktree hooksPath hand…
c-vigo commentedon Aug 12, 2026
Fixed by PR #1471, squash-merged into release/1.8.0 (release-branch merges don't auto-close). Doctor comments in both justfile copies now describe the post-#1463 behavior, and the same stale claim was fixed in doctor.bats, consumer-doctor.bats, and test_flake_hooks.py per the scope note above. Ships in 1.8.0.