0

I've read the Question ID:Gerrit Add Reviewers However, my requirements are a little different.

I have not given my users "push" rights, hence git push tr:kernel/common HEAD:refs/for/experimental%r=a@a.com,r=b@b.com,cc=c@c.com will be redundant for me.

I am using git review -R, however, using this, even though the changes get uploaded, I am not able to add any specific reviewer using command line or some local config. Is there any work around?

Stephen Kennedy
  • 20,585
  • 22
  • 95
  • 108
Yo Yo Money Singh
  • 679
  • 3
  • 11
  • 22

1 Answers1

2

Gerrit's Push permission controls who can push to e.g. refs/heads/*, not general use of the git push command. The example for pushing to refs/for/experimental in your question should work just fine for you.

If you want to continue using the git review command (which oddly enough doesn't appear to support selection of reviewers) you always have the option of adding the reviewers after you've uploaded the change. Use the set-reviewers SSH command or the /changes/<id>/reviewers REST endpoint.

Magnus Bäck
  • 11,381
  • 3
  • 47
  • 59