Skip to content

resolve_base_dir detects worktrees dir inside repo when it's actually not #12

@blizzy78

Description

@blizzy78

If gtr.worktrees.dir or GTR_WORKTREES_DIR are set to .., resolve_base_dir will detect the worktrees dir "inside" the repo when it's actually not.

The culprit seems to be this conditional:

if [[ "$base_dir" == "$repo_root"/* ]]; then

where /* includes directory entries . and ..

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