[tools] master update

tomas at openssl.org tomas at openssl.org
Mon Nov 8 10:41:57 UTC 2021


The branch master has been updated
       via  b57692c1f0b653ba5e4cbb2ae581b6f9def2bb45 (commit)
      from  d9dd40cdad7cdcb6e6160430958a8a5e9998a369 (commit)


- Log -----------------------------------------------------------------
commit b57692c1f0b653ba5e4cbb2ae581b6f9def2bb45
Author: Tomas Mraz <tomas at openssl.org>
Date:   Fri Nov 5 16:51:50 2021 +0100

    pick-to-branch: fix inferring the id from master branch
    
    Reviewed-by: Paul Dale <pauli at openssl.org>
    Reviewed-by: David von Oheimb <david.von.oheimb at siemens.com>
    (Merged from https://github.com/openssl/tools/pull/96)

-----------------------------------------------------------------------

Summary of changes:
 review-tools/pick-to-branch | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/review-tools/pick-to-branch b/review-tools/pick-to-branch
index 6513a36..e7e1000 100755
--- a/review-tools/pick-to-branch
+++ b/review-tools/pick-to-branch
@@ -6,7 +6,7 @@ function usage {
     If this is not the current branch, the current branch and its state are preserved.
 
     The commit can be given in the form of a branch name.
-    If no <id> arg is given, intuit commit id from master.
+    If no <id> arg is given, use the commit id of the HEAD of the master.
     The <branch> arg must match a release branch or start with 'm' for master.
     A release branch may be given simply as 102, 110, 111, 30, 31."
 }
@@ -17,7 +17,7 @@ case $# in
     b=$2
     ;;
 1)
-    id=`git branch -v | awk '$1=="master" { print $2; }'`
+    id=`git show -s --format="%H" master`
     b=$1
     ;;
 *)
@@ -52,7 +52,7 @@ m*)
     ;;
 esac
 
-echo "Commit to chery-pick is:"
+echo "Commit to chery-pick is $id:"
 git show $id | head -n 5
 echo
 echo "Target branch is: $branch"


More information about the openssl-commits mailing list