On Thu, Nov 12, 2015 at 1:10 AM, Antoine Musso hashar+wmf@free.fr wrote:
On that last point, git-review 1.26 comes with a new option 'usepushurl' which makes git-review reuse the origin repo and just set the push url to the ssh:// url. The 'gerrit' remote will no more be needed.
Ie in your ~/.gitconfig :
[gitreview] usepushurl = 1
It's not really new, on older versions you needed to set the name with the defaultremote parameter. (It's even included in the tutorial https://www.mediawiki.org/wiki/Gerrit/Tutorial#Configuring_git-review, although I am not sure that's a good idea.) The problem is that the same setting cannot be used on vagrant, which needs an anonymous origin for automated (ie. passwordless) updates and an authenticated gerrit remote for pushes (T59680 https://phabricator.wikimedia.org/T59680); and vagrant-based and other checkouts behaving differently will confuse the hell out of beginners. I would rather stick with cscott's recommendation to just run git review -u all the time.
More importantly, I'm not sure it's worth to spend a lot of time on improving our gerrit documentation now that we are supposedly a few months away from ditching gerrit completely.