From: Robert Yang Date: Wed, 6 Apr 2016 02:31:27 +0000 (-0700) Subject: create-pull-request: fix for newer git X-Git-Tag: 2016-4~125 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=98faa3ec872e06774b5870fcfb52f3ff91494779;p=openembedded-core.git 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 Signed-off-by: Richard Purdie --- 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"