Skip to content

Commit

Permalink
Fix segfault for update --count=1
Browse files Browse the repository at this point in the history
from ejoffe#423

pr:updateC1Segfault
  • Loading branch information
mattskl-openai committed Dec 19, 2024
1 parent b155833 commit 94b1420
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spr/spr.go
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ func sortPullRequestsByLocalCommitOrder(pullRequests []*github.PullRequest, loca

var sortedPullRequests []*github.PullRequest
for _, commit := range localCommits {
if !commit.WIP {
if !commit.WIP && pullRequestMap[commit.CommitID] != nil {
sortedPullRequests = append(sortedPullRequests, pullRequestMap[commit.CommitID])
}
}
Expand Down

0 comments on commit 94b1420

Please sign in to comment.