We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4dec867 commit 081081dCopy full SHA for 081081d
review-tools/pick-to-branch
@@ -111,7 +111,7 @@ function cleanup {
111
fi
112
if [ "$TARGET" != "$ORIG_REF" ]; then
113
echo Returning to previous branch $ORIG_REF
114
- git checkout -q $ORIG_REF
+ git checkout --force --quiet $ORIG_REF
115
if [ "$STASH_OUT" != "No local changes to save" ]; then
116
git stash pop -q # restore original state, pruning any leftover commits added locally
117
@@ -120,8 +120,7 @@ function cleanup {
120
set -o errexit
121
trap 'cleanup' EXIT
122
123
-git checkout --quiet master
124
-git checkout $TARGET
+git checkout --force $TARGET
125
ORIG_TARGET_HEAD=`git show -s --format="%H"`
126
git pull --ff-only `git rev-parse --abbrev-ref @{u} | sed "s|/| |"`
127
CHERRYPICKING=1
0 commit comments