git tag - Require annotated tags and reject lightweight tags on git push -


is possible set policy on git repo disallows lightweight tags being pushed it?

the git hook page mentions:

the default update hook, when enabled — , hooks.allowunannotated config option unset or set false — prevents unannotated tags pushed.

that references in turn update.sample chris johnsen mentions in comments.

case "$refname","$newrev_type" in     refs/tags/*,commit)         # un-annotated tag         short_refname=${refname##refs/tags/}         if [ "$allowunannotated" != "true" ];             echo "*** un-annotated tag, $short_refname, not allowed in repository" >&2             echo "*** use 'git tag [ -a | -s ]' tags want propagate." >&2             exit 1         fi         ;; 

Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -