Skip to content

Doesn't work within a git worktree #4

@eramdam

Description

@eramdam

This extension is very useful in my day-to-day, thanks! However, I started to use git worktree and I noticed the extension doesn't work when the currently opened folder is a work tree.

You can reproduce by doing the following in an existing repo

git worktree add ../my-worktree "branch"

and trying to use the action inside the newly created folder inside of VSCode, the action will fail because of the lack of a .git/config file

image

My guess is that you could work around this by using the current workspace's absolute file as a fallback 😁

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions