author | Kevin P. Fleming <kpfleming@digium.com> | |
Fri, 10 Sep 2010 16:09:39 +0000 (11:09 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 10 Sep 2010 16:37:51 +0000 (09:37 -0700) | ||
commit | 53cad69105e524deb014fe2ddec1d5804636d182 | |
tree | f683600c017b3e75195970437ad2771c7f637ea2 | tree | snapshot |
parent | b03e7b7d76e79de14e76df5d4e2ee727f4522a95 | commit | diff |
post-receive-email: ensure sent messages are not empty
Changes the logic in the script to determine whether an email message
will be sent before invoking the send_mail() function; otherwise, if
the logic determines that a message will not be sent, send_mail() will
cause an empty email to be sent. In addition, ensures that if multiple
refs are updated and a message cannot be sent for one of them,
the others are still processed normally.
Signed-off-by: Kevin P. Fleming <kpfleming@digium.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Changes the logic in the script to determine whether an email message
will be sent before invoking the send_mail() function; otherwise, if
the logic determines that a message will not be sent, send_mail() will
cause an empty email to be sent. In addition, ensures that if multiple
refs are updated and a message cannot be sent for one of them,
the others are still processed normally.
Signed-off-by: Kevin P. Fleming <kpfleming@digium.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/hooks/post-receive-email | diff | blob | history |