cargo-watch icon indicating copy to clipboard operation
cargo-watch copied to clipboard

Using Git Worktree results in gitignore not being found

Open TECHNOFAB11 opened this issue 1 year ago • 1 comments

When using git worktree there is no ".git" folder, only a ".git" file with the following content:

gitdir: <path to main repo>/.git/worktrees/<worktree name>

This unfortunately results in no .gitignore files being parsed it seems. Running with debug shows just the default ignores being added and a bunch of

Looking in "<path>" for a .git directory

without any findings.

Is it fine to also accept a .git file? Does that have any implications?

TECHNOFAB11 avatar Apr 12 '24 14:04 TECHNOFAB11

huh. yeah, this should be added to the detection. would merge a PR, or I'll do it next week (away on travel right now)

passcod avatar Apr 13 '24 01:04 passcod