From: Bernhard Reutner-Fischer Date: Tue, 5 Feb 2013 15:55:48 +0000 (+0100) Subject: create-pull-request: Error message on missing -u X-Git-Tag: 2015-4~7629 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=72266cfa3a12a19a94d9176ecca9d080658dbf2e;p=openembedded-core.git 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 Signed-off-by: Saul Wold --- 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