[oe-commits] Bernhard Reutner-Fischer : create-pull-request: Error message on missing -u

git at git.openembedded.org git at git.openembedded.org
Thu Feb 7 23:39:13 UTC 2013


Module: openembedded-core.git
Branch: master-next
Commit: 8d93dc3df862ee116c07f6012cd72ee259af6b59
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=8d93dc3df862ee116c07f6012cd72ee259af6b59

Author: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
Date:   Tue Feb  5 16:55:48 2013 +0100

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 at gmail.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 scripts/create-pull-request |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/scripts/create-pull-request b/scripts/create-pull-request
index 9692bf1..503248b 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





More information about the Openembedded-commits mailing list