1

I would like to know if is there a way to not make optional the push request. I want all of them to go directly to review. Is is possible?

Lost
  • 161
  • 2
  • 11

2 Answers2

0

You just push your changes to refs/for/ and they go directly to review. There is no "optional" push request in Gerrit. Have a look at the Gerrit introduction for more info.

  • But the user can forget to push into /refs/for. That is what I mean – Lost Dec 08 '16 at 21:16
  • You have some options to work on this. You could, for example, to create an alias (using bash or Git itself) or you could use "git config" to configure a Git remote. Take a look at some examples at: http://stackoverflow.com/questions/7423893/git-alias-for-headrefs-for-master – Marcelo Ávila de Oliveira Dec 21 '16 at 01:08
0

You need to configure your Gerrit server to reject direct pushes to branches, then refs/for and hence reviews are mandatory.

kwesolowski
  • 695
  • 8
  • 18