3 # Tags should only be allowed to point to commits that are within a branch.
10 # Only interested in tags
13 short_refname=${refname##refs/tags/}
20 # Except if they're getting deleted
21 if [ "$newrev" == "0000000000000000000000000000000000000000" ] ; then
25 contains=$(git branch --contains "$newrev" | wc -l)
26 if [ $contains -eq 0 ] ; then
27 echo "----------------------------------------------------"
29 echo "The tag $short_refname is not included in any branch."
31 echo "----------------------------------------------------"