Commit fedfb15
fix(sync): changed restore to stay on default branch after sync
- changed `RestoreAfterSync` to checkout the default branch instead of the
original branch after rebasing the WIP branch
- removed the `else if` block that checked out the original branch for clean
repos on non-default branches (already on default from the sync step)
- this prevents `prune` from failing with "cannot delete branch used by
worktree" when the merged branch is currently checked out
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 1c7b199 commit fedfb15
2 files changed
Lines changed: 12 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
175 | | - | |
| 175 | + | |
176 | 176 | | |
177 | | - | |
178 | | - | |
179 | 177 | | |
180 | 178 | | |
181 | 179 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
260 | | - | |
| 260 | + | |
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
| |||
274 | 274 | | |
275 | 275 | | |
276 | 276 | | |
277 | | - | |
| 277 | + | |
278 | 278 | | |
279 | 279 | | |
280 | | - | |
| 280 | + | |
281 | 281 | | |
282 | 282 | | |
| 283 | + | |
283 | 284 | | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
284 | 291 | | |
285 | 292 | | |
286 | 293 | | |
287 | 294 | | |
288 | 295 | | |
289 | 296 | | |
| 297 | + | |
290 | 298 | | |
291 | 299 | | |
292 | 300 | | |
| |||
0 commit comments