Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using Git Worktree results in gitignore not being found #303

Open
TECHNOFAB11 opened this issue Apr 12, 2024 · 1 comment
Open

Using Git Worktree results in gitignore not being found #303

TECHNOFAB11 opened this issue Apr 12, 2024 · 1 comment

Comments

@TECHNOFAB11
Copy link

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?

@passcod
Copy link
Member

passcod commented Apr 13, 2024

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants