I am configuring Gerrit and I would like to avoid writing:
git push gerrit HEAD:refs/for/master
I would like to write:
git push review
I am sure it’s possible modifying .git/config but I can’t make it work.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I set up two different push types, review and noreview:
for reviews:
to bypass review:
Note that there are some Gerrit Project changes that need to be made by the Project Owner/Gerrit Admin in order to bypass a review as well. I think the “Push” permission will need to be added to the project for refs/* (unless you’re getting specific about what branch you’ll allow bypassing the review in). However, for reviews, the permissions needed to post in will already be set up. In other words, if your
is working, than the “review” part above should work as well without changing anything else.