gh stack sync --prune for a completed stack deletes the branch but leaves stack in gh stack checkout metadata.
Repro steps:
- Create a stack with 1 branch.
- Submit PR
- Complete PR
- Run gh stack sync --prune
- Branch is synced and deleted
- Run
gh stack checkout
- Observe
Expected: Stack should be deleted
Actual: Stack is not deleted, and cannot be selected because the branch no longer exists.
Workaround: Create a branch with the same name as one that doesn't exist. Run gh stack untrack, delete branch.
gh stack sync --prune for a completed stack deletes the branch but leaves stack in gh stack checkout metadata.
Repro steps:
gh stack checkoutExpected: Stack should be deleted
Actual: Stack is not deleted, and cannot be selected because the branch no longer exists.
Workaround: Create a branch with the same name as one that doesn't exist. Run
gh stack untrack, delete branch.