Skip to content
Commit 5ef9249b authored by Petter Mabäcker's avatar Petter Mabäcker Committed by Richard Purdie
Browse files

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: default avatarPetter Mabäcker <petter@technux.se>
Signed-off-by: default avatarRoss Burton <ross.burton@intel.com>
parent ac38d245
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment