On 7 Paź, 20:49, Denis Laxalde <dlaxa...@gmail.com> wrote:
> Hi,
> I'm using the post-receive hook to send notification upon pushes on a
> central repository. I'd like to set the sender address (in the 'From'
> header) according to the respective "author" of the push, is is
> possible?

you can use:
 * export USER_EMAIL=$(git log -1 --format=format:%ae HEAD)
in your post-receive hook

You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-us...@googlegroups.com.
To unsubscribe from this group, send email to 
For more options, visit this group at 

Reply via email to