From 585c506cd8698948b9e970ebdbf96b99286fb05d Mon Sep 17 00:00:00 2001 From: Darren Hart Date: Tue, 21 Dec 2010 14:54:10 -0800 Subject: 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 --- scripts/send-pull-request | 69 ++++++++++++++++++++++++++++++++++------------- 1 file changed, 50 insertions(+), 19 deletions(-) (limited to 'scripts/send-pull-request') 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 <