]> code.ossystems Code Review - openembedded-core.git/commitdiff
send-pull-request: drop sendemail checks
authorOtavio Salvador <otavio@ossystems.com.br>
Fri, 20 May 2011 20:36:33 +0000 (20:36 +0000)
committerSaul Wold <sgw@linux.intel.com>
Tue, 24 May 2011 06:39:09 +0000 (23:39 -0700)
git send-email has the correct check on it. Basically the From is
taken from the git 'user' and 'email' config values and in case
'sendemail.smtpserver' is not provided it defaults to use local
sendmail command.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Acked-by: Darren Hart <dvhart@linux.intel.com>
scripts/send-pull-request

index cee92537771c1c0a6a2199b3f5507cda61a837ea..5dfc246c34014c9798ace7e410efd3396e648388 100755 (executable)
@@ -67,19 +67,6 @@ harvest_recipients()
        unset IFS
 }
 
-check_git_sendemail_config()
-{
-       GIT_SMTP=$(git config sendemail.smtpserver)
-       GIT_FROM=$(git config sendemail.from)
-       if [ -z "$GIT_SMTP" ] || [ -z "$GIT_FROM" ]; then
-               echo "ERROR: git sendemail is not configured."
-               echo "Please read GIT-SEND-EMAIL(1) and configure:"
-               echo "  sendemail.smtpserver"
-               echo "  sendemail.from"
-               exit 1
-       fi
-}
-
 # Parse and verify arguments
 while getopts "achp:t:" OPT; do
        case $OPT in
@@ -113,9 +100,6 @@ while getopts "achp:t:" OPT; do
        esac
 done
 
-# Abort early if git-send-email is not properly configured
-check_git_sendemail_config
-
 if [ -z "$PDIR" ]; then
        echo "ERROR: you must specify a pull-dir."
        usage