You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a repository is a linked git worktree, index_repository does not honor:
.git/info/exclude — the per-repo local exclude rules
core.excludesFile — the global git config pointing to a custom ignore file
This causes files that should be ignored (build artifacts, IDE configs, etc.) to be indexed, bloating the graph and returning irrelevant search results.
Context
Linked worktrees have a .git file (not directory) pointing to the main worktree's git dir. The exclude resolution path differs from regular repos:
Thanks for raising this! It looks like a duplicate of an existing issue — the canonical one is linked above. Continuing the discussion there keeps everything in one place. We leave this open for visibility; a maintainer will close it once it's fully covered.
Thanks. This duplicates #682, which is the canonical linked-worktree exclude handling issue. The related fix PRs are #683 and #695, so I am closing this duplicate to keep the discussion and status consolidated.
Activity
fix(discover): honor .git/info/exclude and core.excludesFile in linke…
fix(discover): honor .git/info/exclude and core.excludesFile in linke…
fix(discover): honor .git/info/exclude and core.excludesFile in linke…
github-actions commentedon Jul 1, 2026
Thanks for raising this! It looks like a duplicate of an existing issue — the canonical one is linked above. Continuing the discussion there keeps everything in one place. We leave this open for visibility; a maintainer will close it once it's fully covered.
DeusData commentedon Jul 1, 2026
Thanks. This duplicates #682, which is the canonical linked-worktree exclude handling issue. The related fix PRs are #683 and #695, so I am closing this duplicate to keep the discussion and status consolidated.