Thread (6 messages) flat view 6 messages, 4 authors, 2016-06-15

Re: [RFC PATCH 0/4] deny push to current branch of non-bare repo

From: Johannes Schindelin <hidden>
Date: 2016-06-15 22:45:37

Hi,

On Sat, 8 Nov 2008, Jeff King wrote:
On Fri, Nov 07, 2008 at 03:16:53PM -0800, Junio C Hamano wrote:
quoted
quoted
The FAQ even says "don't do this until you know what you are doing." 
So the safety valve is configurable, so that those who know what 
they are doing can switch it off.
"We are breaking your existing working setup but you can add a new 
configuration to unbreak it" should not be done lightly.  I think as 
the end result it is a reasonable thing to aim for for this particular 
feature, but we do need a transition plan patch in between that 
introduces a step that warns but not forbids.  We can ship 1.6.1 with 
it and then switch the default to forbid in 1.6.3, for example.
Yeah, I was kind of hoping we could assume that anybody relying on this
behavior was somewhat insane, and wouldn't be too upset when it broke.
I think I have a repository with "git read-tree -u -m HEAD" as update hook 
for that kind of behavior.

But I will not be the person responsible to keep that behavior, if I am 
the only one relying on it.

I very much like the approach of defaulting to "warn" for quite some time 
(but setting the variable to "refuse" in git-init) and then adapt the 
default after some time.

Ciao,
Dscho
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help