fix BUG() with "git am -i --resolved"
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest4 patches 10 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | am: simplify prompt response handlingbuiltin/ | +1 | 0 replies | |
| 2/4 | am: read interactive input from stdinbuiltin/ | +4 | 0 replies | |
| 3/4 | am: drop tty requirement for --interactivebuiltin/ | +3 | 15 replies | |
| 4/4 | am: fix --interactive HEAD tree resolutionbuiltin/ t/ | +60 | 8 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/4] fix BUG() with "git am -i --resolved"
Quoted 3 lines · Jeff King
I haven't tried to reproduce yet. Is the repository (and patch) that you used to demonstrate this publicly available? Or alternatively, is it possible to show a backtrace from the coredump?
Never mind. It reproduces quite easily, because AFAICT "am -i --resolved" has been totally broken since it was converted to C (in 2015!). I guess it does not have many users. :)
Quoted 1 line
If my blind guess is right, then something like this probably fixes it:
This is indeed the problem. Here are some patches. The actual fix is what I showed already. The other three are just making it possible to cover this with the test suite (until now, we had no coverage of "am --interactive" at all).
[1/4]: am: simplify prompt response handling [2/4]: am: read interactive input from stdin [3/4]: am: drop tty requirement for --interactive [4/4]: am: fix --interactive HEAD tree resolution
builtin/am.c | 30 +++++++++++++++--------- t/t4257-am-interactive.sh | 49 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 68 insertions(+), 11 deletions(-) create mode 100755 t/t4257-am-interactive.sh
-Peff