On 28/02/13 20:35, Lucas De Marchi wrote:
> On Wed, Feb 27, 2013 at 11:44 AM, Tom Hacohen <tom.haco...@samsung.com> wrote:
>> On 27/02/13 14:38, Rafael Antognolli wrote:
>>> What about requiring push -f?
>>
>> Do you know how to do that? I'd love having that.
>
> If git >= 1.6 is running on the server, all you need to do is set the
> configuration:
>
> receive.denyNonFastForwards
>
> Otherwise you need an update/pre-receive hook checking if "git
> rev-list $newrev..$oldrev" is empty in order to accept the push.
>

The problem with that is that it'll also prevent "normal" (topic branch) 
merges, won't it? We can control allowing/disallowing merges per user, 
but that's not what we really want as well (actually, I'm all in favour 
of banning merges, but that's just me).

--
Tom.


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to