From patchwork Mon May 23 12:13:53 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [1/3] send-pull-request: drop sendemail checks Date: Mon, 23 May 2011 12:13:53 -0000 From: Otavio Salvador X-Patchwork-Id: 4629 Message-Id: <3811cce2a92514982ffc6f8c80ec08d3e030f7ef.1306152724.git.otavio@ossystems.com.br> To: openembedded-core@lists.openembedded.org 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 Acked-by: Darren Hart --- scripts/send-pull-request | 16 ---------------- 1 files changed, 0 insertions(+), 16 deletions(-) diff --git a/scripts/send-pull-request b/scripts/send-pull-request index cee9253..5dfc246 100755 --- a/scripts/send-pull-request +++ b/scripts/send-pull-request @@ -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