-
Notifications
You must be signed in to change notification settings - Fork 0
fix(markdown-format): skip out-of-tree Markdown when CLAUDE_PROJECT_DIR unset (#972) #1030
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
kyle-sexton
merged 8 commits into
main
from
fix/972-markdown-format-project-dir-fallback
Jul 25, 2026
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
91a8210
fix(markdown-format): fall back to git-worktree membership when CLAUD…
kyle-sexton 8c882d1
fix(markdown-format): skip out-of-tree Markdown when CLAUDE_PROJECT_D…
kyle-sexton f450f2e
Merge commit '91a8210bd24c8f6467c8e0eba73ffcb40c469989' into fix/972-…
kyle-sexton 2768aef
Merge origin/main into fix/972-markdown-format-project-dir-fallback
kyle-sexton d188251
Merge origin/main into fix/972-markdown-format-project-dir-fallback
kyle-sexton 3cbdffe
fix(markdown-format): resolve symlinks before the out-of-tree members…
kyle-sexton 660b52c
fix(markdown-format): fail closed when symlink canonicalization is un…
kyle-sexton a1491f9
fix(markdown-format): decide tree membership from the directory, not …
kyle-sexton File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When
CLAUDE_PROJECT_DIRis unset on a POSIX host withoutgitonPATH, this command fails exactly like a negative membership result, so every Markdown edit is silently skipped even when the file is in a repository andjqandmarkdownlint-cli2are available. Previouslyhook::repo_roottolerated Git being unavailable by falling back to the file directory, and neither the README requirements nor the setup check requires Git; either preserve that behavior or make Git an explicit, visibly checked prerequisite rather than interpreting command-not-found as out-of-tree.Useful? React with 👍 / 👎.