summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2013-02-05 16:55:48 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-02-08 14:46:02 +0000
commit72266cfa3a12a19a94d9176ecca9d080658dbf2e (patch)
tree6837effbc9eff375843601c0ab0a32661b266f75
parentb9c83b22b555349314191ba60346b01a9252a812 (diff)
downloadopenembedded-core-72266cfa3a12a19a94d9176ecca9d080658dbf2e.tar.gz
openembedded-core-72266cfa3a12a19a94d9176ecca9d080658dbf2e.tar.bz2
openembedded-core-72266cfa3a12a19a94d9176ecca9d080658dbf2e.zip
create-pull-request: Error message on missing -u
The script was erroring out without a hint on what failed. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
-rwxr-xr-xscripts/create-pull-request5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/create-pull-request b/scripts/create-pull-request
index 9692bf1665..503248bbf0 100755
--- a/scripts/create-pull-request
+++ b/scripts/create-pull-request
@@ -1,6 +1,6 @@
#!/bin/bash
#
-# Copyright (c) 2010-2011, Intel Corporation.
+# Copyright (c) 2010-2013, Intel Corporation.
# All Rights Reserved
#
# 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)
echo "NOTE: Assuming remote branch '$BRANCH', use -b to override."
fi
-
+
if [ -z "$REMOTE_URL" ]; then
+ echo "ERROR: Missing parameter -u, no git remote!"
usage
exit 1
fi