diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-07 19:23:19 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-07 19:23:19 -0500 |
| commit | 288b59380dd37da2216ad98bc08397b6174c63b4 (patch) | |
| tree | 6359a700848fc823369c5a5285e128c6f59373ff /scripts/readability | |
| parent | 46cf5b4c3e10aec4293297d05e4abfe3caac71eb (diff) | |
| download | rulesets-288b59380dd37da2216ad98bc08397b6174c63b4.tar.gz rulesets-288b59380dd37da2216ad98bc08397b6174c63b4.zip | |
fix(commits): anchor .ai/ detection to repo root with :/ pathspec
The detection command for personal vs. general voice mode used `git ls-files .ai/`, which returns no matches when run from a subdirectory of the repo, even when `.ai/` is tracked at the root. That silently misclassified projects as personal-voice when they should have been general-voice.
Switching to `git ls-files :/.ai/` anchors the search to the repo root via the `:/` pathspec, so the command works correctly from any cwd.
I hit this myself today: ran the check from `claude-rules/` inside the rulesets repo, got an empty result, and applied `/voice personal` to a commit that should have used `/voice` (general mode).
Diffstat (limited to 'scripts/readability')
0 files changed, 0 insertions, 0 deletions
