]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
create-pull-request: fix for newer git rbt/pull
authorRobert Yang <liezhi.yang@windriver.com>
Wed, 6 Apr 2016 02:18:52 +0000 (19:18 -0700)
committerRobert Yang <liezhi.yang@windriver.com>
Wed, 6 Apr 2016 02:28:16 +0000 (19:28 -0700)
commit7412004fb61286a31cdbaccec78be4c75d4d9458
treed091db3ed1d2d15c1e12a1f148fb7b6531c100ed
parentb2dc5a68e74dafedf7960ef77ad3d73912ed7960
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>
scripts/create-pull-request