Skip to content

Commit b144752

Browse files
skarimCopilot
andauthored
update comment about skipping merged PRs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 346a8ca commit b144752

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/checkout.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -471,8 +471,8 @@ func importRemoteStack(
471471
}
472472

473473
// 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.
474+
// If creating a local branch for a merged PR fails, skip it. This commonly
475+
// happens when the PR branch was deleted from the remote after merge.
476476
for _, pr := range prs {
477477
branch := pr.HeadRefName
478478
if git.BranchExists(branch) {

0 commit comments

Comments
 (0)