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 ..
If
gtr.worktrees.dirorGTR_WORKTREES_DIRare set to..,resolve_base_dirwill detect the worktrees dir "inside" the repo when it's actually not.The culprit seems to be this conditional:
where
/*includes directory entries.and..