pick-to-branch: revert cherry-pick if aborted by user
authorDr. David von Oheimb <David.von.Oheimb@siemens.com>
Mon, 8 Nov 2021 11:46:35 +0000 (12:46 +0100)
committerTomas Mraz <tomas@openssl.org>
Mon, 22 Nov 2021 14:05:51 +0000 (15:05 +0100)
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/tools/pull/98)

review-tools/pick-to-branch

index e7e10008e88effe7535cb12f7591dc0ec1316395..a953252b6273846ee632678279fd7065381adf1a 100755 (executable)
@@ -113,4 +113,6 @@ done
 if [ "$x" = "y" -o "$x" = "yes" ]
 then
     git push
+else
+    git reset --hard @~1
 fi