How to disable direct clicking on Gerrit?

When working with Gerrit, the expected push :

 git push origin HEAD:refs/for/branch 

But some bad guys seem to do it in a simple way (they learned from some Git manual):

 git push origin 

or

 git push 

This operation will cause serious problems:

  • A fixed connection is merged directly into the main (or default) branch on the remote server.
  • Although the guys write some kind of commit message, but git log can'not can't find them.
  • Perhaps more ...

Is there a way to disable this push operation in Gerrit settings? Or disable it on the client?

+4
source share
1 answer

There are permissions in the Gerrit admin user interface. Permissions are inherited from the All-Projects project. Look there (Admin => Project => All-Projects => Access) and delete the right-click on any of the wizards. Read more in the document: Access Control

+4
source

All Articles