Is it possible to configurate gerrit to always send the push requests to refs/for?
my team is implementing gerrit on their git repositories. We liked the way it works. As far as I understand (please, correct me if I am wrong) once gerrit is implemented it is kind of optional. If you use refs/for at the time you push, your push is sent to gerrit for review. But if you do not use refs/for it automatically pushes the code. My question: Is there a way to not give the user the opportunity to push directly? I want every push to be sent to revision because sometimes the user can get to forget to add refs/for to his/her push request.
It's optional but a person need to have a "special" permission to be able to push straight to the branch (bypassing Gerrit review). Have this permission is not the default for the most people in the most of Gerrit servers. Normally only Configuration Managers or Administrators have this permission: Reference refs/heads/* Push If someone who doesn't have this permission pushes straight to the branch the push will fail with "Prohibited by Gerrit" error (See here for more details).
Gerrit can not login
How to not get lost reviewing Gerrit reviews comments?
How to see all incoming reviews in gerrit?
Reset gerrit -2 Code Review
How can I parse file-paths in gerrit-code-review site?
Gerrit redirects to wrong URL
How to retrieve the task context using Gerrit/Mylyn connector?
How to form a Gerrit search for reviews that have more than one +1 but pending a +2
How can I show the difference on click of the file path in gerrit ui?
Change default gerrit commit-msg
Push to gerrit command error prohibited by Gerrit
Can I make gerrit scores ephemeral?
How to avoid Gerrit to automatically add authors as reviewers?
How can I display the Gerrit ID in the UI?
Gerrit Code Review: Can not find “Review” and “Abandon Change” button after system upgrading
What is the correct way to integrate Gerrit project into Tuleap