R. Tyler Ballance wrote: > Besides a vigorous flogging, we're looking at other ways to prevent this > sort of thing from happening again; the option we've settled on is to > remove the "--force" flag from our internal build of v1.6.1 > > I'm wondering if somebody could point me in the right direction to > remove "--force" (safely) from the builtin-push.c and removing the > "rebase" command (we've got no use for it, and would prefer it gone). IMHO your update (or pre-receive) hook should just disallow non-fast-forward updates. This doesn't really address git-rebase, but it will disallow pushing a "harmfully" rebased branch since those are by definition non-ff. Why take away the option to correct a mistake in the last commit with 'git rebase -i'? -- Thomas Rast trast@{inf,student}.ethz.ch
Attachment:
signature.asc
Description: This is a digitally signed message part.