aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-05-19 21:28:51 -0700
committerJunio C Hamano <gitster@pobox.com>2010-05-19 21:28:51 -0700
commitc06ee3193e7873fde3525045e88c5741cefc91c4 (patch)
treeca56db9aa8d0c6e869037de65cc647dd69b97895
parent636e87d705c2d6cc53d58eac31b689779d00b292 (diff)
parentcc24a1d809c75f0b6e5b1e56134b5127196bb2fb (diff)
downloadgit-c06ee3193e7873fde3525045e88c5741cefc91c4.tar.gz
git-c06ee3193e7873fde3525045e88c5741cefc91c4.tar.xz
Merge branch 'maint'
* maint: post-receive-email: document command-line mode
-rwxr-xr-xcontrib/hooks/post-receive-email7
1 files changed, 7 insertions, 0 deletions
diff --git a/contrib/hooks/post-receive-email b/contrib/hooks/post-receive-email
index 58a35c828..30ae63d74 100755
--- a/contrib/hooks/post-receive-email
+++ b/contrib/hooks/post-receive-email
@@ -23,6 +23,13 @@
# possible for the email to be from someone other than the person doing the
# push.
#
+# To help with debugging and use on pre-v1.5.1 git servers, this script will
+# also obey the interface of hooks/update, taking its arguments on the
+# command line. Unfortunately, hooks/update is called once for each ref.
+# To avoid firing one email per ref, this script just prints its output to
+# the screen when used in this mode. The output can then be redirected if
+# wanted.
+#
# Config
# ------
# hooks.mailinglist