create-pull-request: Add URL documentation

If we can't find the URL, tell the user how to correct the issue.

(From OE-Core rev: e5edda2e84e19a90ca2b0a6d4c265e5d5f59d42a)

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Mark Hatle 2011-06-06 18:17:34 -05:00 committed by Richard Purdie
parent 1f0e24236f
commit d2a9470342
1 changed files with 3 additions and 0 deletions

View File

@ -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