We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 346a8ca commit b144752Copy full SHA for b144752
cmd/checkout.go
@@ -471,8 +471,8 @@ func importRemoteStack(
471
}
472
473
// Create local branches for each PR's head branch.
474
- // Skip merged PRs whose branches were deleted from the remote —
475
- // these no longer exist upstream and can't be created locally.
+ // If creating a local branch for a merged PR fails, skip it. This commonly
+ // happens when the PR branch was deleted from the remote after merge.
476
for _, pr := range prs {
477
branch := pr.HeadRefName
478
if git.BranchExists(branch) {
0 commit comments