Skip to content

docs(workspace): fix stale doctor comments on worktree hooksPath handling - #1471

Merged
c-vigo merged 2 commits into
release/1.8.0from
docs/1469-doctor-hookspath-comments
Aug 12, 2026
Merged

c-vigo merged 2 commits into
release/1.8.0from
docs/1469-doctor-hookspath-comments

Conversation

@c-vigo

@c-vigo c-vigo commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Summary

After #1463 (PR #1464), just worktree-start no longer unsets core.hooksPath — a configured hooks path is left untouched (the tracked .githooks shims cover the new worktree) and the prek install into the shared .git/hooks survives only as the fallback when no hooks path is set. The #1454 doctor comments in both justfile copies still asserted the old behavior was "the INTENDED state ... on purpose", which would actively mislead the next hook-state investigation (the #1430 → #1454 → #1461 → #1463 chain shows how much debugging here leans on these comments).

Changes

Comment-only, zero behavior delta:

Doctor logic and echo strings untouched; no changelog entry (internal docs). TDD skipped: comment-only, non-testable.

Verification

bats tests/bats/doctor.bats tests/bats/consumer-doctor.bats → 26/26 ok; full prek run --all-files → exit 0; clean tree.

Closes #1469

c-vigo added 2 commits August 12, 2026 14:06
…ling

The doctor recipe comments in justfile and the scaffolded
assets/workspace/justfile still claimed `just worktree-start` unsets
core.hooksPath in the worktree on purpose and always prek-installs the
shims. Since #1463 a configured hooks path is left untouched (the
tracked .githooks shims cover the worktree) and the prek install into
the shared .git/hooks survives only as the fallback when no hooks path
is configured. Reword both copies to describe that reality; doctor
logic and output are unchanged.

Refs: #1469
…mments

The doctor and shellHook test files repeated the pre-#1463 statement that
worktree-start deliberately unsets core.hooksPath; scope widened on the
issue to cover them in the same traceable unit.

Refs: #1469
@c-vigo
c-vigo merged commit 03679bc into release/1.8.0 Aug 12, 2026
12 checks passed
@c-vigo
c-vigo deleted the docs/1469-doctor-hookspath-comments branch August 12, 2026 12:25
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.

1 participant