X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FGitalist.git;a=blobdiff_plain;f=t%2Flib%2Frepositories%2Fbare.git%2Fhooks%2Fupdate.sample;fp=t%2Flib%2Frepositories%2Fbare.git%2Fhooks%2Fupdate.sample;h=71ab04edc09be7aeefa1e8a0f609a974ffd55a9f;hp=fd63b2d662dbcf98ec622a1ab754d041a559e3be;hb=af2c5a6d465a126c3158967289bf8fb57d4010de;hpb=0c3fed1b2aecbd5ea2f59a8028f58d3f72004468 diff --git a/t/lib/repositories/bare.git/hooks/update.sample b/t/lib/repositories/bare.git/hooks/update.sample index fd63b2d..71ab04e 100755 --- a/t/lib/repositories/bare.git/hooks/update.sample +++ b/t/lib/repositories/bare.git/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