8 if expr "$oldrev" : '0*$' >/dev/null ; then
12 if [ "$refname" != "refs/heads/stable" ] ; then
17 # - all commits from old..new
18 # - unless they were already pointed to by a branch
19 # = all new commits on stable
20 count=$(git rev-parse --not --branches | git rev-list --stdin $oldrev..$newrev | wc -l)
21 if [ "$count" -ne "0" ] ; then
22 newname=$(git rev-parse "$newrev")
23 echo "----------------------------------------------------"
25 echo "Moving stable to $newname includes a new commit"
27 echo "----------------------------------------------------"