]> code.ossystems Code Review - openembedded-core.git/commitdiff
create-pull-request: Error message on missing -u
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Tue, 5 Feb 2013 15:55:48 +0000 (16:55 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 8 Feb 2013 14:46:02 +0000 (14:46 +0000)
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>
scripts/create-pull-request

index 9692bf1665b8317c1919fa73eceae36e7e3b754a..503248bbf071751f2c5da01fd40a79f35f039a2e 100755 (executable)
@@ -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