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

javascript - Iterate over array and calculate average values of array-parts -

iphone - Using nested NSDictionary with Picker -

objective c - Newbie question -multiple parameters -