Reinhold Kainhofer <[email protected]> writes: > 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.
Yes, something I did not think of. Making releases sounds like a good case for the privileged user, though. -- David Kastrup _______________________________________________ lilypond-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/lilypond-devel
