X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=server%2Fpost-receive-email;h=629fb6c85edc998e6ed8ed94f2dfa7c84157fc37;hb=5e1fb56a0dc4016b7f814e7122599cdaffe97605;hp=1fdecc8d6d37717bc3db5e382de7a667fa495bc4;hpb=b3c55f334acfd073ad3bac0ad1182148cab498c0;p=git-central.git diff --git a/server/post-receive-email b/server/post-receive-email index 1fdecc8..629fb6c 100755 --- a/server/post-receive-email +++ b/server/post-receive-email @@ -1,22 +1,12 @@ #!/bin/sh # # Copyright (c) 2007 Andy Parkins +# Copyright (c) 2008 Stephen Haberman # -# An example hook script to mail out commit update information. This hook -# sends emails listing new revisions to the repository introduced by the -# change being reported. The rule is that (for branch updates) each commit +# This hook sends emails listing new revisions to the repository introduced by +# the change being reported. The rule is that (for branch updates) each commit # will appear on one email and one email only. # -# This hook is stored in the contrib/hooks directory. Your distribution -# will have put this somewhere standard. You should make this script -# executable then link to it in the repository you would like to use it in. -# For example, on debian the hook is stored in -# /usr/share/doc/git-core/contrib/hooks/post-receive-email: -# -# chmod a+x post-receive-email -# cd /path/to/your/repository.git -# ln -sf /usr/share/doc/git-core/contrib/hooks/post-receive-email hooks/post-receive -# # This hook script assumes it is enabled on the central repository of a # project, with all users pushing only to it and not between each other. It # will still work if you don't operate in that style, but it would become @@ -37,6 +27,9 @@ # sender address to be set # hooks.post-receive-email.sendmail # The path to sendmail, e.g. /usr/sbin/sendmail or /bin/msmtp +# USER_EMAIL +# Environment variable that should be set by your repository-specific +# post-receive hook. E.g. export USER_EMAIL=${USER}@example.com # # Notes # ----- @@ -487,3 +480,4 @@ else fi done fi +