From: Darren Hart Date: Tue, 21 Dec 2010 22:54:10 +0000 (-0800) Subject: send-pull-request: allow users to select git-send-email or sendmail X-Git-Tag: 2011-1~3314 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=585c506cd8698948b9e970ebdbf96b99286fb05d;p=openembedded-core.git send-pull-request: allow users to select git-send-email or sendmail Some users find it easier to use their git sendmail setup over a local MTA to deliver mail with the send-pull-request script. If you would like to do this, please read the git-send-email man page and set the relevant entries in your git config. In particular, be sure to set sendemail.from to avoid being asked each time. Reported-by: Khem Raj CC: Bruce Ashfield Signed-off-by: Darren Hart --- diff --git a/scripts/send-pull-request b/scripts/send-pull-request index 03a78f9b1e..9872c0dc65 100755 --- a/scripts/send-pull-request +++ b/scripts/send-pull-request @@ -1,6 +1,11 @@ #!/bin/bash AUTO=0 +# Check env for any default settings, command line options will override these. +if [ -z "$PULL_MTA" ]; then + PULL_MTA="sendmail" +fi + usage() { cat <