From 22a87232d7296d1e8513f818bb5644cce13b43f0 Mon Sep 17 00:00:00 2001 From: weichen Date: Wed, 30 Sep 2026 15:28:29 +0000 Subject: [PATCH] Untrack the node_modules symlink and ignore both directory and link forms Why: 642299d committed node_modules as a symlink pointing at the absolute path /home/weichen/projects/Agent-System-Dev/modules/frontend/node_modules. The .gitignore rule "node_modules/" only matches directories, not symlinks, so the link slipped through and other clones would receive this machine's path while normal installs get bypassed. Evidence: git ls-tree HEAD node_modules => mode 120000 blob before this commit; git check-ignore -v node_modules exits 0 with rule ".gitignore:2:node_modules" after unstaging the link. Impact: fresh clones no longer carry a machine-specific symlink; local installs work normally. No code changes. Refs: code review of feature/chat-process-split-r1 (2026-09-30) --- .gitignore | 3 ++- node_modules | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) delete mode 120000 node_modules diff --git a/.gitignore b/.gitignore index e5537be..69830df 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ -node_modules/ +# 无斜杠形式同时忽略目录与符号链接(目录式规则不匹配 symlink,曾致链接被提交)。 +node_modules dist/ *.local diff --git a/node_modules b/node_modules deleted file mode 120000 index 0179db8..0000000 --- a/node_modules +++ /dev/null @@ -1 +0,0 @@ -/home/weichen/projects/Agent-System-Dev/modules/frontend/node_modules \ No newline at end of file