Repository navigation
docs(workspace): fix stale doctor comments on worktree hooksPath handling - #1471
Merged
Merged
Conversation
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
After #1463 (PR #1464),
just worktree-startno longer unsetscore.hooksPath— a configured hooks path is left untouched (the tracked.githooksshims cover the new worktree) and the prek install into the shared.git/hookssurvives only as the fallback when no hooks path is set. The #1454 doctor comments in bothjustfilecopies 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:
justfile+assets/workspace/justfile: the doctor linked-worktree comment now describes post-[BUG] just worktree-start unsets core.hooksPath repo-wide, disarming the main checkout's hooks #1463 reality — the shared-hooks PASS branch covers the no-hooksPath fallback plus worktrees created before [BUG] just worktree-start unsets core.hooksPath repo-wide, disarming the main checkout's hooks #1463; a post-fix worktree keeps the shared setting and hits the normal.githooksPASS branch. The--git-pathrationale and the copies' one-phrase wording difference are preserved. (These are independent copies —scripts/manifest.tomlmirrors onlyjustfile.gh/justfile.worktree— so both needed the hand edit.)tests/bats/doctor.bats,tests/bats/consumer-doctor.bats,tests/test_flake_hooks.py: the same stale claim repeated in test comments, folded in per the scope note on the issue.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; fullprek run --all-files→ exit 0; clean tree.Closes #1469