I'm following the tutorial again for setup on another machine, and encountered the problem discussed in where Ori says "if you're a power user and know to configure ~/.config/git-review/git-review.conf to specify defaultremote=origin, then you just have to remember to clone Gerrit repositories using ssh://". If this tutorial suggests to do stuff appropriate only for power users, it shouldn't; or, if what above is correct, "git clone https://gerrit.wikimedia.org/r/p/test/mediawiki/extensions/examples.git" should be changed to ssh://.
Topic on Talk:Gerrit/Tutorial
Yes, I think it should be ssh and you don't want two remotes.
Ori later made the killer suggestion to just tell ~/.gitconfig to rewrite the https URLs:
[url "ssh://myUserName@gerrit.wikimedia.org:29418/"] insteadOf = "https://gerrit.wikimedia.org/r/mediawiki/core"
I don't know if this bit of fu made it into the docs.
This post was posted by SPage (WMF), but signed as S Page (WMF).
Related to the topic, but not the first post:
After following the tutorial to use a system-wide default for git-review 1.25.0, I get the message:
19:36 $ git review -s Using global/system git-review config files (/home/dlocks/.config/git-review/git-review.conf) is deprecated
The instructions still work, and git-review does in fact use origin as global default. However, there's also a deprecation warning after every git-review invocation. The docs indicate that
git config --global gitreview.remote origin
should be sufficient. I also added
git config --global gitreview.host my.gerrit.server
although it did not seem necessary, so I removed it.
I don't see that deprecation warning in my git-review 1.24 package in Ubuntu 15.04, I guess it was added in 1.25. So it seems the docs should explain both approaches, unless there's a way to tell if git config --global gitreview.remote origin will have an effect. (Git will let you set any config variable, e.g. git config --global gitreview.foo bar.)