Reputation: 718
I have done my gerrit server configuration on my server for the first time. In my current set up, I have to follow the following steps
Step no. 4 is optional, as I can directly do a git review and generate the review link.
But if I want to create a review link automatically with my git push, how can I do it as given here :
https://gerrit-review.googlesource.com/Documentation/intro-quick.html#_creating_the_review
Also I see that if I only do git push I cannot see the changes in Gerrit UI.
Have I made any mistake in gerrit configuration ?
Upvotes: 1
Views: 836
Reputation: 22351
Yes, you don't need to execute "git push" and "git review" because git-review is just a tool to help/automate some tasks related to Git/Gerrit (more info here).
So, it's totally enought to execute the "git push" command as described in the documentation link you have posted:
git push origin HEAD:refs/for/master
If you can't see your change in Gerrit probably there's something wrong with your push command. Have you added the "refs/for/" in your branch name?
Add the output of your push command to the question...
Upvotes: 1