pick-to-branch: Improve diagnostics on bad target branch
authorDr. David von Oheimb <David.von.Oheimb@siemens.com>
Mon, 25 Oct 2021 07:36:51 +0000 (09:36 +0200)
committerTomas Mraz <tomas@openssl.org>
Mon, 1 Nov 2021 13:08:21 +0000 (14:08 +0100)
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/tools/pull/95)

review-tools/pick-to-branch

index 7dc1caadc199d64f8afcc5b52748de74910fd66a..792877787416af9dc686f037e4a668546895a91a 100755 (executable)
@@ -2,7 +2,7 @@
 
 function usage {
     echo "Usage: pick-to-branch [<commit_id>] <branch>
-    Cherry-pick a commit on the given target branch.
+    Cherry-pick a commit on the given release target branch.
     If this is not the current branch, the current branch and its state are preserved.
 
     If <commit_id>, intuit commit id from master.
@@ -46,7 +46,7 @@ m*)
     branch=master
     ;;
 *)
-    echo Unknown branch
+    echo Unknown release target branch \'$b\'
     exit 1
     ;;
 esac