ghmerge: support handling conflicts on --cherry-pick
authorDr. David von Oheimb <David.von.Oheimb@siemens.com>
Wed, 19 Oct 2022 18:34:04 +0000 (20:34 +0200)
committerTomas Mraz <tomas@openssl.org>
Fri, 21 Oct 2022 17:02:39 +0000 (19:02 +0200)
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/tools/pull/129)

review-tools/ghmerge

index edcb80a26ff36010aead55526265ecc6188bb0d4..67e5f6e7b2e93ada90c29a9892ba6585c901df57 100755 (executable)
@@ -219,7 +219,7 @@ else
     git checkout -b $WORK $TARGET
     WORK_USED=$WORK
     CHERRYPICKING=1
-    git fetch $REPO $BRANCH && (git cherry-pick FETCH_HEAD~$PICK..FETCH_HEAD || exit 1)
+    git fetch $REPO $BRANCH && (git cherry-pick FETCH_HEAD~$PICK..FETCH_HEAD || (echo -ne "Press Ctrl-d to abort, or fix the issue in another shell,\n    run 'git cherry-pick --continue' there, and on success press Enter here: "; read || exit 1))
     CHERRYPICKING=
 fi