Skip to content

Fix segfault when running update with --count=1 on a stack with more than one commit #423

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 13, 2025

Conversation

chriscz
Copy link
Collaborator

@chriscz chriscz commented Aug 22, 2024

This fixes #420

sortPullRequestsByLocalCommitOrder assumes that all commits in the stack will have a corresponding PR, which is not true.

Now I just need to figure out how to add a test for this ;)

@chriscz chriscz requested a review from ejoffe August 22, 2024 03:24
@chriscz chriscz self-assigned this Aug 22, 2024
mattskl-openai added a commit to mattskl-openai/spr that referenced this pull request Dec 19, 2024
mattskl-openai added a commit to mattskl-openai/spr that referenced this pull request Dec 19, 2024
from ejoffe#423

pr:updateC1Segfault

---

**Stack**:
-   #13
-   #12
- ➡ #10


⚠️ *Part of a stack created by [spr](https://github.com/ejoffe/spr). Do
not merge manually using the UI - doing so may have unexpected results.*
@ejoffe
Copy link
Owner

ejoffe commented Mar 13, 2025

Can you try to update your branch on top of origin. There has been a bunch of unit test updates.

@chriscz chriscz force-pushed the fix/segfault-on-update branch from 36125b9 to 2da13d5 Compare March 13, 2025 04:37
@chriscz
Copy link
Collaborator Author

chriscz commented Mar 13, 2025

Can you try to update your branch on top of origin. There has been a bunch of unit test updates.

Done

@ejoffe ejoffe merged commit 19780ae into ejoffe:master Mar 13, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SIGSEGV running git spr update -c 1
2 participants