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).
How to get previous patch in gerrit
Integrate Gitolite with Gerrit ACL.
How to display reset password link on gerrit portal?
How to hide line numbers on Gerrit
Gerrit:change authenticate mode from http to ldap
Unhide a hidden Gerrit project
Find a pattern in the pending changes
How to setup access rights inheritance in gerrit
Create new user using Gerrit UI
Review screen not opening with new screen
Ignore empty lines in Diff View Change Screen
Gerrit change-id to git commit-id
How to setup Gerrit without any authentication?
How to start Gerrit in Windows 7 after Initialization
How do I merge Gerrit instances without losing history
Buildbot nightly build is failing to checkout the branch