create-pull-request: Error message on missing -u
The script was erroring out without a hint on what failed. (From OE-Core rev: 72266cfa3a12a19a94d9176ecca9d080658dbf2e) Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
81117fd2fa
commit
dab4662822
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#
|
#
|
||||||
# Copyright (c) 2010-2011, Intel Corporation.
|
# Copyright (c) 2010-2013, Intel Corporation.
|
||||||
# All Rights Reserved
|
# All Rights Reserved
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# This program is free software; you can redistribute it and/or modify
|
||||||
|
@ -124,8 +124,9 @@ if [ -z "$BRANCH" ]; then
|
||||||
BRANCH=$(git branch | grep -e "^\* " | cut -d' ' -f2)
|
BRANCH=$(git branch | grep -e "^\* " | cut -d' ' -f2)
|
||||||
echo "NOTE: Assuming remote branch '$BRANCH', use -b to override."
|
echo "NOTE: Assuming remote branch '$BRANCH', use -b to override."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$REMOTE_URL" ]; then
|
if [ -z "$REMOTE_URL" ]; then
|
||||||
|
echo "ERROR: Missing parameter -u, no git remote!"
|
||||||
usage
|
usage
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue