Patchwork [8/8] create-pull-request: Error message on missing -u

login
register
mail settings
Submitter Bernhard Reutner-Fischer
Date Feb. 5, 2013, 3:55 p.m.
Message ID <7251b1a1fc4daf0469b8f25047acda2f5304bd30.1360079373.git.rep.dot.nop@gmail.com>
Download mbox | patch
Permalink /patch/44117/
State Accepted
Commit 72266cfa3a12a19a94d9176ecca9d080658dbf2e
Headers show

Comments

Bernhard Reutner-Fischer - Feb. 5, 2013, 3:55 p.m.
The script was erroring out without a hint on what failed.

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
---
 scripts/create-pull-request |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

Patch

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