[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Nonfastforwarding push to staging
From: |
Reinhold Kainhofer |
Subject: |
Re: Nonfastforwarding push to staging |
Date: |
Sun, 13 Nov 2011 23:31:14 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 |
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, address@hidden, 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
Re: Nonfastforwarding push to staging, David Kastrup, 2011/11/13
Re: Nonfastforwarding push to staging, Graham Percival, 2011/11/15