From: Robert Yang Date: Wed, 6 Apr 2016 02:18:52 +0000 (-0700) Subject: create-pull-request: fix for newer git X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7412004fb61286a31cdbaccec78be4c75d4d9458;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.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 --- diff --git a/scripts/create-pull-request b/scripts/create-pull-request index dd66dfe46e3..479ad6efc9a 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"