From 2da883627f47abf2b008eb19cce98728c172efad Mon Sep 17 00:00:00 2001 From: "Bingxi Zhao (Frank)" <13051345080@163.com> Date: Wed, 12 Aug 2026 17:11:41 +0800 Subject: [PATCH] fix: drop a symlinked web/node_modules that #802 staged MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The merge of #802 carried a `web/node_modules` symlink into the tree. It pointed at the main checkout's own install, so pulling dev replaced that directory with a symlink to itself and broke `npm` for anyone who pulled. `.gitignore` did not stop it because both of its node_modules rules end in a slash, which matches only a real directory — not the symlink a git worktree uses to borrow the main checkout's install. Ignore both spellings. --- .gitignore | 5 +++++ web/node_modules | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) delete mode 120000 web/node_modules diff --git a/.gitignore b/.gitignore index fee2b05fb..177d88ec6 100644 --- a/.gitignore +++ b/.gitignore @@ -70,7 +70,12 @@ venv.bak/ # Node.js and Frontend Build # ============================================ # Node modules +# Both spellings: the trailing slash matches only a real directory, so a +# symlinked node_modules (how a git worktree usually borrows the main +# checkout's install) would otherwise be staged by `git add -A`. +node_modules node_modules/ +**/node_modules **/node_modules/ # Next.js build output diff --git a/web/node_modules b/web/node_modules deleted file mode 120000 index 1b1a9aa1b..000000000 --- a/web/node_modules +++ /dev/null @@ -1 +0,0 @@ -/Users/frank/HKUDS/DeepTutor/web/node_modules \ No newline at end of file