On 2011-11-13 20:10, David Kastrup wrote:
It would look somewhat like the following (untested)

#!/bin/sh
case "$1" in refs/heads/dev/*)
        exit 0;;
     refs/heads/staging)
        if [ $3 == "0000000000000000000000000000000000000000" ]
        then echo "Deleting $1 not permitted.";exit 1
        fi
        exit 0;;
     *)
        if [ $3 == "0000000000000000000000000000000000000000" ]
        then echo "Deleting $1 not permitted.";exit 1
        elif [ $2 == "0000000000000000000000000000000000000000" ]
        then echo "Creating $1 not permitted.";exit 1
        elif [ "`git rev-list --count $3..$2`" -ne 0 ]
        then echo "Only fast forwards allowed on $1";exit 1
        fi
        exit 0;;
esac

AFAIK, Graham needs to create branches origin/stable/2.xx for each release.
I also don't know whether origin/release/unstable will be deleted/recreated by Graham's scripts.

Cheers,
Reinhold

--
------------------------------------------------------------------
Reinhold Kainhofer, reinh...@kainhofer.com, http://reinhold.kainhofer.com/
 * Financial&  Actuarial Math., Vienna Univ. of Technology, Austria
 * http://www.fam.tuwien.ac.at/, DVR: 0005886
 * LilyPond, Music typesetting, http://www.lilypond.org


_______________________________________________
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to