summaryrefslogtreecommitdiffstats
path: root/scripts/create-pull-request
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:50:36 +0000
commitdab46628222333de8987bc760a846b0ab637cd2b (patch)
tree98b7e855bd05660134eb6bf4963e000a899703cf /scripts/create-pull-request
parent81117fd2fa49b0ddf06db61b617d5c065c3e3c65 (diff)
downloadpoky-dab46628222333de8987bc760a846b0ab637cd2b.tar.gz
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>
Diffstat (limited to 'scripts/create-pull-request')
-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 @@
1#!/bin/bash 1#!/bin/bash
2# 2#
3# Copyright (c) 2010-2011, Intel Corporation. 3# Copyright (c) 2010-2013, Intel Corporation.
4# All Rights Reserved 4# All Rights Reserved
5# 5#
6# This program is free software; you can redistribute it and/or modify 6# This program is free software; you can redistribute it and/or modify
@@ -124,8 +124,9 @@ if [ -z "$BRANCH" ]; then
124 BRANCH=$(git branch | grep -e "^\* " | cut -d' ' -f2) 124 BRANCH=$(git branch | grep -e "^\* " | cut -d' ' -f2)
125 echo "NOTE: Assuming remote branch '$BRANCH', use -b to override." 125 echo "NOTE: Assuming remote branch '$BRANCH', use -b to override."
126fi 126fi
127 127
128if [ -z "$REMOTE_URL" ]; then 128if [ -z "$REMOTE_URL" ]; then
129 echo "ERROR: Missing parameter -u, no git remote!"
129 usage 130 usage
130 exit 1 131 exit 1
131fi 132fi