Skip to content

GitHD is not activated inside a git worktree. #99

@tmueller

Description

@tmueller

Thanks for maintaining such a useful vscode plugin.

An issue I encountered is, that GitHD does not activate when used inside a git worktree directory. To activate itself, githd scans the current directory for a .git directory. (

private async _scanFolder(folder: string, includeSubFolders?: boolean): Promise<number> {
)

However, when working inside a git worktree directory, there is no directory .git inside the directory, although the directory is under version control by git.

Maybe the detection, whether a project is under version control can be changed to some service provided by vscode? Because vscodes git ui is able to pickup, that the worktree directory is under version control.

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