Skip to content
This repository has been archived by the owner on Jan 18, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants