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

Re: Removing options from build

From: Thomas Rast <hidden>
Date: 2016-06-15 22:45:56

Thomas Rast wrote:
R. Tyler Ballance wrote:
quoted
I'm wondering if somebody could point me in the right direction to
remove "--force" (safely) from the builtin-push.c
IMHO your update (or pre-receive) hook should just disallow
non-fast-forward updates.
Actually there's even this config option:

       receive.denyNonFastForwards
           If set to true, git-receive-pack will deny a ref update
           which is not a fast forward.  Use this to prevent such an
           update via a push, even if that push is forced. This
           configuration variable is set when initializing a shared
           repository.

-- 
Thomas Rast
trast@{inf,student}.ethz.ch

Attachments

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