]> code.ossystems Code Review - openembedded-core.git/commit
create-pull-request: fix for newer git
authorRobert Yang <liezhi.yang@windriver.com>
Wed, 6 Apr 2016 02:31:27 +0000 (19:31 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 6 Apr 2016 09:33:40 +0000 (10:33 +0100)
commit98faa3ec872e06774b5870fcfb52f3ff91494779
tree384dee67842db749f174896786dbc2cc89265ba9
parent2114b5a9a70bb07bdb15edafa6ec9689933db871
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 <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/create-pull-request