Commit fc37b80
fix: force checkout in restart/cleanup to handle dirty worktrees
When a workspace is on a different branch with uncommitted changes,
`git checkout` fails silently and the `-b` fallback fails because
the branch already exists. Since restart and cleanup are explicitly
destructive (reset --hard follows immediately), use `-f` to force
past dirty trees and `-B` to handle existing branches.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 51bca5b commit fc37b80
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1725 | 1725 | | |
1726 | 1726 | | |
1727 | 1727 | | |
1728 | | - | |
| 1728 | + | |
1729 | 1729 | | |
1730 | 1730 | | |
1731 | 1731 | | |
| |||
1833 | 1833 | | |
1834 | 1834 | | |
1835 | 1835 | | |
1836 | | - | |
| 1836 | + | |
1837 | 1837 | | |
1838 | 1838 | | |
1839 | 1839 | | |
| |||
0 commit comments