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 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CGeSZxh1DCtRxmFVSYVGvJ
This commit is contained in:
+7
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user