Commit 53d02e9
`.gitignore:2` is `node_modules/` — the trailing slash makes it match a
DIRECTORY only. In a linked worktree whose `node_modules` is a symlink to a
shared install, the rule does not match: `git check-ignore -v node_modules`
exits 1 and `git status --short` prints `?? node_modules`.
Add the slashless form beside it (the existing line is untouched). This repo
tracks `node_modules` in no shape, so covering both forms costs nothing, and it
closes the `git add -A` hazard recorded twice before (#10781, #12583): an
untracked, non-ignored path at the repo root is one careless `git add -A` away
from committing a symlink to an absolute container path.
Measured effect it also removes: `dispatch-gates.mjs --changed` counts that
untracked path as part of the change set, and even derives a gate family from
it via `node_modules/@objectstack/spec/CHANGELOG.md`.
Claude-Session: https://claude.ai/code/session_012zGPuVVX3deAx9LdjK8jCk
Co-authored-by: Claude <noreply@anthropic.com>
1 parent ec0a6e7 commit 53d02e9
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
| |||
0 commit comments