On 7 Paź, 20:49, Denis Laxalde <[email protected]> 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?
I think answer is here:
 * 
http://stackoverflow.com/questions/2443908/how-do-i-make-git-post-receive-emails-be-sent-from-the-commit-author

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

>
> Thanks in advance,
>
> Denis

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.

Reply via email to