From 39077281d137320518f92eaeb57636b5c2cac2e6 Mon Sep 17 00:00:00 2001 From: Codeman maintainer Date: Tue, 20 Oct 2026 10:52:12 +0200 Subject: [PATCH] chore: ignore a node_modules symlink, not only the directory `node_modules/` with a trailing slash matches directories only, so a worktree that links node_modules to a shared install shows the link as untracked and a plain `git add` commits it. Two PR heads did (#658, #662), which also broke checking them out next to a real install. Co-Authored-By: Claude Opus 5.5 (1M context) --- .gitignore | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index f3f25c5f..ff7d124e 100644 --- a/.gitignore +++ b/.gitignore @@ -8,8 +8,9 @@ DECISIONS.md # Written by install.sh into end-user clones when setup finishes .install-complete -# Dependencies -node_modules/ +# Dependencies. No trailing slash: `node_modules/` matches only a directory, so a +# worktree's `node_modules` symlink to a shared install got committed (#658, #662). +node_modules # Build output dist/