[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Nonfastforwarding push to staging
From: |
David Kastrup |
Subject: |
Re: Nonfastforwarding push to staging |
Date: |
Mon, 14 Nov 2011 00:26:20 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) |
Reinhold Kainhofer <address@hidden> 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
Re: Nonfastforwarding push to staging, David Kastrup, 2011/11/13
Re: Nonfastforwarding push to staging, Graham Percival, 2011/11/15