]> code.ossystems Code Review - openembedded-core.git/commit
create-pull-request: handle empty ODIR
authorPetter Mabäcker <petter@technux.se>
Tue, 24 Nov 2015 12:45:25 +0000 (13:45 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 1 Dec 2015 21:30:53 +0000 (21:30 +0000)
commit5ef9249bbae4f08eb9b981d10f31bd3348449c82
tree6cf86907f5a9ad1968fac87d1b43b42c84b868e8
parentac38d245878b618ddf56f9a68834d344500e45a6
create-pull-request: handle empty ODIR

In some situations you might end-up with an empty ODIR (pull-xx/). The
most common reason is that you have applied your patches on 'master'
branch (or you are by mistake standing on the 'master' branch),
this will result in the default behavior that 'git format-patch'
will try to diff master..master.

Solve this by aborting the script with a proper error code and message
if ODIR is empty after the 'git format-patch' call (that is expected
to generate the cover-letter and patches).

Signed-off-by: Petter Mabäcker <petter@technux.se>
Signed-off-by: Ross Burton <ross.burton@intel.com>
scripts/create-pull-request