X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=templates%2Fhooks--update.sample;h=71ab04edc09be7aeefa1e8a0f609a974ffd55a9f;hb=1c80c9b2cb5ae0d8c77f3c73730225ca19aeef4a;hp=fd63b2d662dbcf98ec622a1ab754d041a559e3be;hpb=04bf4483eab68301f44b912b3364db6d07542c72;p=git.git 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