{"thread":{"id":"19733","subject":"Per-branch receive.denyNonFastForwards?","startedAt":"2009-06-08T05:20:44Z","lastAt":"2009-06-08T08:43:05Z","messageCount":2,"participants":["skillzero@gmail.com","Michael J Gruber"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"115765","messageId":"2729632a0906072220n4dff5d39vaa863401c136c3c5@mail.gmail.com","threadId":"19733","inReplyTo":null,"subject":"Per-branch receive.denyNonFastForwards?","fromName":"","fromEmail":"skillzero@gmail.com","sentAt":"2009-06-08T05:20:44Z","receivedAt":"2009-06-08T05:20:44Z","isPatch":false,"sender":{"key":"skillzero@gmail.com","avatar":null},"body":"Is there a way to deny non-fast forward pushes to only certain\nbranches? I'd like for people to be able to force push to their own\nbranches on the server, but for the master branch (and maybe a couple\nother important branches), I want to prevent it. I basically want a\nper-branch version of receive.denyNonFastForwards. Is there a way to\ndo this?\n"},{"id":"115779","messageId":"4A2CCF19.9000405@drmicha.warpmail.net","threadId":"19733","inReplyTo":"2729632a0906072220n4dff5d39vaa863401c136c3c5@mail.gmail.com","subject":"Re: Per-branch receive.denyNonFastForwards?","fromName":"Michael J Gruber","fromEmail":"git@drmicha.warpmail.net","sentAt":"2009-06-08T08:43:05Z","receivedAt":"2009-06-08T08:43:05Z","isPatch":false,"sender":{"key":"git@grubix.eu","avatar":"https://avatars.githubusercontent.com/u/233215?v=4"},"body":"skillzero@gmail.com venit, vidit, dixit 08.06.2009 07:20:\n> Is there a way to deny non-fast forward pushes to only certain\n> branches? I'd like for people to be able to force push to their own\n> branches on the server, but for the master branch (and maybe a couple\n> other important branches), I want to prevent it. I basically want a\n> per-branch version of receive.denyNonFastForwards. Is there a way to\n> do this?\n\nThe update-hook example should shows how you could guard specific\nbranches. If you want to make this user-dependent you may need to look\nat gitosis.\n\nMichael\n"}]}