Skip to content

Running gtr in a subdirectory should behave the same as running from root of repository #161

@aaronschwartz

Description

@aaronschwartz

I mainly work inside of a specific subdirectory in my git project. It would be nice to not have to worry about being at the root of the git repo before running gtr to get the correct behavior.

Currently running list in root of git repo:

gtr list
Git Worktrees

BRANCH                         PATH
------                         ----
(detached) [main repo]         /projects/testproject
testbranch /projects/testproject/testbranch

If I run it under a subdirectory subDir in the project this is the output:

gtr list
[!] Worktrees are inside repository at: subDir/..-worktrees
[!] Consider adding '/subDir/..-worktrees/' to .gitignore to avoid committing worktrees
Git Worktrees

BRANCH                         PATH
------                         ----
(detached) [main repo]         ..

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