On Fri, Jun 1, 2012 at 2:08 AM, Tajti Ákos <akos.tajti@xxxxxxxxxxx> wrote: > Dear List, > > we wrote a servlet that is basically a proxy for git-http-backend. We want > to control who can create a new branch. Is there a way to reject a push that > would create a new branch (without using hooks)? Not sure what else your servlet does or how it affects things but gitolite has controls to prevent branches being created (among many many other things, limited mostly by ones imagination!). Gitolite is normally used with ssh but it has been tested with smart http also. It itself acts as a proxy for git-http-backend, inspecting the URI and QUERY_STRING and such animals to decode some things, while the rest happens via a special update hook that is installed in each repo that it controls. (Specifically, the branch create check is done there, not in the part that is proxying the git-http-backend process. You probably know that the update hook is invoked by git itself). Sitaram -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html