Topic on Talk:Gerrit/Tutorial

Nemo bis (talkcontribs)

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://.

SPage (WMF) (talkcontribs)
Dwlocks (talkcontribs)

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.

SPage (WMF) (talkcontribs)

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.)

Reply to "defaultremote = origin"