When pull_github_pr.sh uses git cherry-pick to merge a single-patch pull request, this cherry-pick can fail. A typical example is trying to merge a patch that has actually already been merged in the past, so cherry-pick reports that the patch, after conflict resolution, is empty. When cherry-pick fails, it leaves the working directory in an annoying mid-cherry-pick state, and today the user needs to manually call "git cherry-pick --abort" to return to the normal state. The script should it automatically - so this is what we do in this patch. Signed-off-by: Nadav Har'El <nyh@scylladb.com>
1.9 KiB
Executable File
1.9 KiB
Executable File