aboutsummaryrefslogtreecommitdiff
path: root/templates/hooks--update.sample
diff options
context:
space:
mode:
authorBen Walton <bwalton@artsci.utoronto.ca>2010-03-20 10:48:09 -0400
committerJunio C Hamano <gitster@pobox.com>2010-03-20 09:04:38 -0700
commit100e762a60a691a4978434f1cd5532e19cad39fc (patch)
tree6aa87c5094603e53468f9add2dc595693d5b63ee /templates/hooks--update.sample
parent502be959531b34e2d9283213b7bca51842639240 (diff)
downloadgit-100e762a60a691a4978434f1cd5532e19cad39fc.tar.gz
git-100e762a60a691a4978434f1cd5532e19cad39fc.tar.xz
Modernize git calling conventions in hook templates
The hook templates were still using/referencing 'git-foo' instead of 'git foo.' This patch updates the sample hooks to use the modern conventions instead. Signed-off-by: Ben Walton <bwalton@artsci.utoronto.ca> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'templates/hooks--update.sample')
-rwxr-xr-xtemplates/hooks--update.sample4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/hooks--update.sample b/templates/hooks--update.sample
index fd63b2d66..71ab04edc 100755
--- a/templates/hooks--update.sample
+++ b/templates/hooks--update.sample
@@ -1,7 +1,7 @@
#!/bin/sh
#
# An example hook script to blocks unannotated tags from entering.
-# Called by git-receive-pack with arguments: refname sha1-old sha1-new
+# Called by "git receive-pack" with arguments: refname sha1-old sha1-new
#
# To enable this hook, rename this file to "update".
#
@@ -64,7 +64,7 @@ zero="0000000000000000000000000000000000000000"
if [ "$newrev" = "$zero" ]; then
newrev_type=delete
else
- newrev_type=$(git-cat-file -t $newrev)
+ newrev_type=$(git cat-file -t $newrev)
fi
case "$refname","$newrev_type" in