-
-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Fix merge panic #35606
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
Fix merge panic #35606
Conversation
we should probably also add a testcase that merges a pull request with the |
The merge tests already exist, but they contained bugs that prevented the previous issue from being detected. I’ve submitted commit 50d3d94 to fix the test bug. |
@lunny
Otherwise we will not reach the show-ref command and this is why this test did not catch this bug before |
763d8c8 added a new merge test with head commit id. |
To prevent potential bugs, the logic in #35543 makes
gitcmd.Command
panic when attempting to override stdout or stderr. Instead of usingPrepareCmd
, this PR now uses the WithXXX methods directly to avoid the panic.Fix #35603