jesseduffield / jesseduffield/lazygit
Excluding a file in a worktree does not work
Open
bug
- Dominant language
- Go
- Stars
- 82.4k
- Forks
- 3k
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 19
Description
**Describe the bug**
The folder is a worktree `d:\checkouts\foo\worktrees\wt2` and the main repo is `:\checkouts\foo`
I move the cursor to a file I wish to *exclude*. I press *i* then I press *e*. An error appears

there is no `d:\checkouts\moduleworks\worktrees\wt2\.git` folder but there is a `d:\checkouts\moduleworks\.git\worktrees\wt2` where an exclude file for worktrees should live. I think the *exclude* command is just not worktree aware
Contributor guide
Assessment
This issue has not been assessed yet.