cmds: display an error message when cherry-pick fails
commit53eb7c6167c45573caca3ee36fada036ac955231
authorDavid Aguilar <davvid@gmail.com>
Sat, 4 Feb 2023 22:22:07 +0000 (4 14:22 -0800)
committerDavid Aguilar <davvid@gmail.com>
Sun, 5 Feb 2023 02:08:45 +0000 (4 18:08 -0800)
treec90e3515581dbd576d434cadd5680a6ceb1f3409
parent1f8378a75eebb88a71e5e90ca166659d75fddbc1
cmds: display an error message when cherry-pick fails

Do not silently fail when "git cherry-pick" returns a non-zero
exit status. Report the error so that the user can respond.

When cherry-picking multiple commits stop processing commits
as soon as the first cherry-pick fails.

Closes #1062
Reported-by: Niel Buys <nbuys@ncomp.co.za>
Signed-off-by: David Aguilar <davvid@gmail.com>
cola/cmds.py
cola/models/main.py