summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2011-05-20 20:36:33 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-05-25 15:50:53 +0100
commit7fd97dd14de6034c809f459df2fbe4f960cc0c68 (patch)
treed3ab61fce38881b3ae76f470d2d1fdc2f5817145
parent8e341a6b390098df2685c8a469fd6bfc3163e442 (diff)
downloadpoky-7fd97dd14de6034c809f459df2fbe4f960cc0c68.tar.gz
send-pull-request: drop sendemail checks
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. (From OE-Core rev: b75cf390d75957f5b5718892942f76fc4295270f) Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Acked-by: Darren Hart <dvhart@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-xscripts/send-pull-request16
1 files changed, 0 insertions, 16 deletions
diff --git a/scripts/send-pull-request b/scripts/send-pull-request
index cee9253777..5dfc246c34 100755
--- a/scripts/send-pull-request
+++ b/scripts/send-pull-request
@@ -67,19 +67,6 @@ harvest_recipients()
67 unset IFS 67 unset IFS
68} 68}
69 69
70check_git_sendemail_config()
71{
72 GIT_SMTP=$(git config sendemail.smtpserver)
73 GIT_FROM=$(git config sendemail.from)
74 if [ -z "$GIT_SMTP" ] || [ -z "$GIT_FROM" ]; then
75 echo "ERROR: git sendemail is not configured."
76 echo "Please read GIT-SEND-EMAIL(1) and configure:"
77 echo " sendemail.smtpserver"
78 echo " sendemail.from"
79 exit 1
80 fi
81}
82
83# Parse and verify arguments 70# Parse and verify arguments
84while getopts "achp:t:" OPT; do 71while getopts "achp:t:" OPT; do
85 case $OPT in 72 case $OPT in
@@ -113,9 +100,6 @@ while getopts "achp:t:" OPT; do
113 esac 100 esac
114done 101done
115 102
116# Abort early if git-send-email is not properly configured
117check_git_sendemail_config
118
119if [ -z "$PDIR" ]; then 103if [ -z "$PDIR" ]; then
120 echo "ERROR: you must specify a pull-dir." 104 echo "ERROR: you must specify a pull-dir."
121 usage 105 usage