Repository navigation
Commit 98f334f
fix(server): switching branches no longer kills a slow checkout and leaves the tree half-switched
switchRef ran git checkout with a fixed 10 second timeout. In a large repo the
checkout can take longer, and killing it after it has written part of the
target branch's files but before it updates the index and HEAD leaves the old
branch checked out over a mixed working tree that git cannot roll back.
Run the checkout without a timeout, as push and pull already do, so it either
completes or fails on its own.
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>1 parent 67c0fc0 commit 98f334f
2 files changed
Lines changed: 39 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
264 | 264 | | |
265 | 265 | | |
266 | 266 | | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
267 | 301 | | |
268 | 302 | | |
269 | 303 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4357 | 4357 | | |
4358 | 4358 | | |
4359 | 4359 | | |
| 4360 | + | |
| 4361 | + | |
| 4362 | + | |
| 4363 | + | |
4360 | 4364 | | |
4361 | 4365 | | |
4362 | 4366 | | |
4363 | 4367 | | |
4364 | 4368 | | |
4365 | | - | |
| 4369 | + | |
4366 | 4370 | | |
4367 | 4371 | | |
4368 | 4372 | | |
| |||
0 commit comments