# An example hook script to block unannotated tags from entering.
# Called by "git receive-pack" with arguments: refname sha1-old sha1-new
# To enable this hook, rename this file to "update".
# This boolean sets whether unannotated tags will be allowed into the
# repository. By default they won't be.
# This boolean sets whether deleting tags will be allowed in the
# repository. By default they won't be.
# This boolean sets whether a tag may be modified after creation. By default
# hooks.allowdeletebranch
# This boolean sets whether deleting branches will be allowed in the
# repository. By default they won't be.
# This boolean sets whether remotely creating branches will be denied
# in the repository. By default this is allowed.
if [ -z "$GIT_DIR" ]; then
echo "Don't run this script from the command line." >&2
echo " (if you want, you could supply GIT_DIR then run" >&2
echo " $0 <ref> <oldrev> <newrev>)" >&2
if [ -z "$refname" -o -z "$oldrev" -o -z "$newrev" ]; then
echo "usage: $0 <ref> <oldrev> <newrev>" >&2