While working with Gerrit, the expected push
is:
git push origin HEAD:refs/for/branch
But some bad guys seems to do this in a simple way(they learned from some Git manual):
git push origin
or
git push
These operation will cause serious problems:
git log
can'not find them.Is there was a way to disable these push
operation in Gerrit settings? Or disable it in client?
There are permissions in the Gerrit admin UI. Permissions are inherited from the All-Projects
project. Have a look there (Admin => Project => All-Projects => Access) and remove the push right to anyone on master. More details in the doc here: Access control
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With