pick-to-branch: Fix the case that commit id is derived from HEAD of master
authorDr. David von Oheimb <David.von.Oheimb@siemens.com>
Sat, 23 Oct 2021 11:10:41 +0000 (13:10 +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 0f679e7ebb476587aa5a3ff278589c63f63f4923..7dc1caadc199d64f8afcc5b52748de74910fd66a 100755 (executable)
@@ -16,7 +16,7 @@ case $# in
     b=$2
     ;;
 1)
-    id=`git branch -v | awk '$2=="master" { print $3; }'`
+    id=`git branch -v | awk '$1=="master" { print $2; }'`
     b=$1
     ;;
 *)