Benoit Sigoure <[EMAIL PROTECTED]> wrote: > Off topic: How did you hack the script git/contrib/hooks/post-receive- > email so that it uses the email of the person who pushed in the From > field?
Hi Benoit, Here is the definition of the variable used to expand "From: $committer": (from an earlier version of the script you mention) + # The committer will be obtained from the latest existing rev; so + # for a deletion it will be the oldrev, for the others, then newrev + committer=$(git show --pretty=full -s $rev | sed -ne "s/^Commit: //p" | + sed -ne 's/\(.*\) </"\1" </p') That code has since been removed from git's contrib/hooks/post-receive-email script.