git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Per-branch receive.denyNonFastForwards?
@ 2009-06-08  5:20 skillzero
  2009-06-08  8:43 ` Michael J Gruber
  0 siblings, 1 reply; 2+ messages in thread
From: skillzero @ 2009-06-08  5:20 UTC (permalink / raw)
  To: git

Is there a way to deny non-fast forward pushes to only certain
branches? I'd like for people to be able to force push to their own
branches on the server, but for the master branch (and maybe a couple
other important branches), I want to prevent it. I basically want a
per-branch version of receive.denyNonFastForwards. Is there a way to
do this?

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Per-branch receive.denyNonFastForwards?
  2009-06-08  5:20 Per-branch receive.denyNonFastForwards? skillzero
@ 2009-06-08  8:43 ` Michael J Gruber
  0 siblings, 0 replies; 2+ messages in thread
From: Michael J Gruber @ 2009-06-08  8:43 UTC (permalink / raw)
  To: skillzero; +Cc: git

skillzero@gmail.com venit, vidit, dixit 08.06.2009 07:20:
> Is there a way to deny non-fast forward pushes to only certain
> branches? I'd like for people to be able to force push to their own
> branches on the server, but for the master branch (and maybe a couple
> other important branches), I want to prevent it. I basically want a
> per-branch version of receive.denyNonFastForwards. Is there a way to
> do this?

The update-hook example should shows how you could guard specific
branches. If you want to make this user-dependent you may need to look
at gitosis.

Michael

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-06-08  8:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-08  5:20 Per-branch receive.denyNonFastForwards? skillzero
2009-06-08  8:43 ` Michael J Gruber

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).