From 7412004fb61286a31cdbaccec78be4c75d4d9458 Mon Sep 17 00:00:00 2001 From: Robert Yang Date: Tue, 5 Apr 2016 19:18:52 -0700 Subject: create-pull-request: fix for newer git Fixed when git > 2.1.0: $ ./scripts/create-pull-request -r HEAD^ -u contrib -b rbt/git fatal: Not a valid revision: rbt/git ERROR: git request-pull reported an error This is because newer git requires both local and remote branch named as rbt/git, but usually, we only named the remote branch as rbt/foo, and foo for local branch. Add a option '-l' to fix the problem, default is HEAD. Signed-off-by: Robert Yang --- scripts/create-pull-request | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/scripts/create-pull-request b/scripts/create-pull-request index dd66dfe46e..479ad6efc9 100755 --- a/scripts/create-pull-request +++ b/scripts/create-pull-request @@ -36,6 +36,7 @@ CMD=$(basename $0) cat <> "$PM" else - git request-pull $RELATIVE_TO $REMOTE_URL $BRANCH:$BRANCH >> "$PM" + git request-pull $RELATIVE_TO $REMOTE_URL $L_BRANCH:$BRANCH >> "$PM" fi if [ $? -ne 0 ]; then echo "ERROR: git request-pull reported an error" -- cgit 1.2.3-korg