From 707c3e5040020cd7447947ce52deec779c555aef Mon Sep 17 00:00:00 2001 From: kami Date: Fri, 31 Jul 2026 02:17:15 +0400 Subject: [PATCH] Ignore deps and models as symlinks, not just directories .gitignore had deps/ and /models/llm/ with trailing slashes. A trailing slash only matches a real directory, so a *symlink* with the same name is not ignored and git add -A commits it as a symlink blob. That bites anyone working in a git worktree, where deps/ and models/ do not exist and have to be linked in from the main checkout. It already happened once tonight. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01CGeSZxh1DCtRxmFVSYVGvJ --- .gitignore | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index a305ba3..fdf47cb 100644 --- a/.gitignore +++ b/.gitignore @@ -10,8 +10,11 @@ # Certs (private keys, don't commit) certs/ -# Dependencies (fetch/build, not vendored) +# Dependencies (fetch/build, not vendored). +# Both forms on purpose: 'deps/' misses a symlink named deps, and agents working +# in a git worktree symlink these in from the main checkout. deps/ +deps # ML models (large, downloaded separately) — specific dirs, not blanket, # because models/seeds/*.txt are small, tracked files the classifier needs. @@ -19,6 +22,9 @@ deps/ /models/stt/ /models/tts/ /models/llm/ +# Symlink forms, same reason as deps above. +/models/embedder +/models/llm # Runtime data *.db