jesseduffield / jesseduffield/lazygit

Excluding a file in a worktree does not work

Open
#3,489 3 comments 0 reactions 0 assignees View on GitHub
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

![image](https://github.com/jesseduffield/lazygit/assets/17650/fdb80e19-4516-4c48-abe8-2a5c7c784059)

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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.