Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/openssl/tools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDr. David von Oheimb <David.von.Oheimb@siemens.com>2021-11-26 17:14:52 +0300
committerTomas Mraz <tomas@openssl.org>2021-12-03 14:44:27 +0300
commitb2ddb46e81f60f6eaf5f598526e9cbde57fda6ca (patch)
tree9755eeb93a715cfb10c1a03c49a85d7de3f08403
parent7f88b33177be032aca32a32c308cfeafb4db9e2d (diff)
pick-to-branch: restrict 'git pull --ff-only' to target branch
Reviewed-by: Paul Dale <pauli@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/tools/pull/101)
-rwxr-xr-xreview-tools/pick-to-branch2
1 files changed, 1 insertions, 1 deletions
diff --git a/review-tools/pick-to-branch b/review-tools/pick-to-branch
index a1e05b1..dd36129 100755
--- a/review-tools/pick-to-branch
+++ b/review-tools/pick-to-branch
@@ -110,7 +110,7 @@ trap 'cleanup' EXIT
git checkout --quiet master
git checkout $target
ORIG_TARGET_HEAD=`git show -s --format="%H"`
-git pull --ff-only
+git pull --ff-only `git rev-parse --abbrev-ref @{u} | sed "s|/| |"`
CHERRYPICKING=1
git cherry-pick -e -x $id~$num..$id || (git cherry-pick --abort; exit 1)
CHERRYPICKING=