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

Using Git Worktree results in gitignore not being found  #303

@TECHNOFAB11

Description

@TECHNOFAB11

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions