Skip to content

Failing to remove the repo doesn't cause non-0 exit code in gtr rm #188

Description

@AlexeyDmitriev
➜  gtr rm $(basename $PWD)    
==> Removing worktree: XXX
==> Running preRemove hooks...
[OK] Hook 1: test -L bazel-out && bazel clean --expunge && bazel shutdown || true
[OK] Hook 1 completed successfully
[x] Failed to remove worktree: fatal: '.../XXX' contains modified or untracked files, use --force to delete it
➜  echo $? 
0

I used gtr rm $(basename $PWD) && exit and expected that it will not close in this case

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions