]> code.ossystems Code Review - openembedded-core.git/commitdiff
create-pull-request: Add URL documentation
authorMark Hatle <mark.hatle@windriver.com>
Mon, 6 Jun 2011 23:17:34 +0000 (18:17 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 9 Jun 2011 14:37:10 +0000 (15:37 +0100)
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

index d52098ee60098fd1c913b2a272f8d158e35e8a08..7d021d322758a519d5110596040295c649003a10 100755 (executable)
@@ -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