Commit fecf719
committed
ap_git: force-create temp branch while shallow cloning from local repo
Any failure between `__branch_create` and `__branch_delete` can leave behind a stale temp branch, which can cause failures when we try to create a branch with the same name in subsequent builds.
Since `shallow_clone_at_commit_from_local` is the only function that creates these temp branches and expects the temp branch to always track the required commit, we can force-create it to handle cases where a stale branch is left behind from a previous failure.1 parent 57cde47 commit fecf719
1 file changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
279 | | - | |
| 279 | + | |
| 280 | + | |
280 | 281 | | |
281 | 282 | | |
282 | 283 | | |
283 | 284 | | |
284 | 285 | | |
285 | 286 | | |
| 287 | + | |
| 288 | + | |
286 | 289 | | |
287 | 290 | | |
288 | 291 | | |
289 | 292 | | |
290 | 293 | | |
291 | 294 | | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
292 | 298 | | |
293 | 299 | | |
294 | 300 | | |
| |||
626 | 632 | | |
627 | 633 | | |
628 | 634 | | |
629 | | - | |
| 635 | + | |
630 | 636 | | |
631 | 637 | | |
632 | 638 | | |
| |||
0 commit comments