Patchwork [3/3] create-pull-request: Add URL documentation

login
register
mail settings
Submitter Mark Hatle
Date June 7, 2011, 12:21 a.m.
Message ID <15dc7d03abd73179735de93624ec8453f36aed8b.1307406014.git.mark.hatle@windriver.com>
Download mbox | patch
Permalink /patch/5485/
State New, archived
Headers show

Comments

Mark Hatle - June 7, 2011, 12:21 a.m.
If we can't find the URL, tell the user how to correct the issue.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
---
 scripts/create-pull-request |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
Saul Wold - June 9, 2011, 6:37 p.m.
On 06/06/2011 05:21 PM, Mark Hatle wrote:
> If we can't find the URL, tell the user how to correct the issue.
>
> Signed-off-by: Mark Hatle<mark.hatle@windriver.com>
> ---
>   scripts/create-pull-request |    3 +++
>   1 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/scripts/create-pull-request b/scripts/create-pull-request
> index d52098e..7d021d3 100755
> --- a/scripts/create-pull-request
> +++ b/scripts/create-pull-request
> @@ -94,6 +94,9 @@ while getopts "b:chi:m:o:p:r:s:u:" OPT; do
>   		REMOTE_URL=$(git config remote.$REMOTE.url)
>   		if [ $? -ne 0 ]; then
>   			echo "ERROR: git config failed to find a url for '$REMOTE'"
> +			echo
> +			echo "To add a remote url for $REMOTE, use:"
> +			echo "  git config remote.$REMOTE.url<url>"
>   			exit 1
>   		fi
>

Merged into OE-Core

Thanks
	Sau!

Patch

diff --git a/scripts/create-pull-request b/scripts/create-pull-request
index d52098e..7d021d3 100755
--- a/scripts/create-pull-request
+++ b/scripts/create-pull-request
@@ -94,6 +94,9 @@  while getopts "b:chi:m:o:p:r:s:u:" OPT; do
 		REMOTE_URL=$(git config remote.$REMOTE.url)
 		if [ $? -ne 0 ]; then
 			echo "ERROR: git config failed to find a url for '$REMOTE'"
+			echo
+			echo "To add a remote url for $REMOTE, use:"
+			echo "  git config remote.$REMOTE.url <url>"
 			exit 1
 		fi