git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2/2] templates/hooks--*: don't refer to contrib hooks
@ 2011-09-26 12:59 Gerrit Pape
  2011-09-26 17:52 ` Junio C Hamano
  0 siblings, 1 reply; 3+ messages in thread
From: Gerrit Pape @ 2011-09-26 12:59 UTC (permalink / raw)
  To: Junio C Hamano, git

Simplify the sample post-receive hook to not refer to some location of a
contrib hook that might be installed in different locations on different
systems.  Instead simply provide a sample file that does nothing just as
the post-commit sample hook.

Signed-off-by: Gerrit Pape <pape@smarden.org>
---
 templates/hooks--post-receive.sample |   12 ++----------
 1 files changed, 2 insertions(+), 10 deletions(-)

diff --git a/templates/hooks--post-receive.sample b/templates/hooks--post-receive.sample
index 7a83e17..5b1771f 100755
--- a/templates/hooks--post-receive.sample
+++ b/templates/hooks--post-receive.sample
@@ -2,14 +2,6 @@
 #
 # An example hook script for the "post-receive" event.
 #
-# The "post-receive" script is run after receive-pack has accepted a pack
-# and the repository has been updated.  It is passed arguments in through
-# stdin in the form
-#  <oldrev> <newrev> <refname>
-# For example:
-#  aa453216d1b3e49e7f6f98441fa56946ddcd6a20 68f7abf4e6f922807889f52bc043ecd31b79f814 refs/heads/master
-#
-# see contrib/hooks/ for a sample, or uncomment the next line and
-# rename the file to "post-receive".
+# To enable this hook, rename this file to "post-receive".
 
-#. /usr/share/doc/git-core/contrib/hooks/post-receive-email
+: Nothing
-- 
1.7.6.3

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-09-27 11:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-26 12:59 [PATCH 2/2] templates/hooks--*: don't refer to contrib hooks Gerrit Pape
2011-09-26 17:52 ` Junio C Hamano
2011-09-27 11:56   ` [PATCH] templates/hooks--*: remove sample hooks without any functionality Gerrit Pape

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).