3 # Tags should only be allowed to point to commits that are within a branch.
6 . $(dirname $0)/functions
12 # Only interested in tags
15 short_refname=${refname##refs/tags/}
22 # Except if they're getting deleted
23 if [ "$newrev" == "0000000000000000000000000000000000000000" ] ; then
27 contains=$(git branch --contains "$newrev" | wc -l)
28 if [ $contains -eq 0 ] ; then
29 display_error_message "The tag $short_refname is not included in any branch."