post-receive-hook: Remove the From field from the generated email header so that the pusher's name is used
Using the name of the committer of the revision at the tip of the updated ref is not sensible. That information is available in the email itself should it be wanted, and by supplying a "From", we were effectively hiding the person who performed the push - which is useful information in itself. Signed-off-by: Andy Parkins <andyparkins@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Andy Parkins committed
Sep 28, 2007 at 15:24 UTC
e6dc8d60fbd2c84900a26545c5d360b0e202d95b
1 file changed
-1
contrib/hooks/post-receive-email
-1
@@ -177,7 +177,6 @@ generate_email_header()
177
# --- Email (all stdout will be the email)
178
# Generate header
179
cat <<-EOF
180
- From: $committer
180
To: $recipients
181
Subject: ${EMAILPREFIX}$projectdesc $refname_type, $short_refname, ${change_type}d. $describe
182
X-Git-Refname: $refname