How do I make git post-receive emails be sent from the commit author?

Posted by Jonathan Tran on Stack Overflow See other posts from Stack Overflow or by Jonathan Tran
Published on 2010-03-14T21:48:18Z Indexed on 2010/03/14 23:15 UTC
Read the original article Hit count: 235

Filed under:
|
|
|

I'm using the post-receive-email script included with git. (Source is here.) It works just fine, but I want each email to be sent from the author of the commits pushed. How do I do it?

My post-receive file currently looks like this, and I want to customize the from-email-address.

#!/bin/sh

export [email protected]
$(dirname $0)/post-receive-email

© Stack Overflow or respective owner

Related posts about git

Related posts about email