Tried setting up the global config in /etc. git-review's gone wild with an
exception (very sorry, I switched the terminal off and cannot provide the
backtrace; I remember it wanted 'updates' section or some kind of). Luckly
~/.config/ worked well, thanks!


On Sat, Jun 1, 2013 at 1:14 AM, Ori Livneh <o...@wikimedia.org> wrote:

> Hey,
>
> The new version of git-review released today (1.22) includes a patch I
> wrote that makes it possible to work against a single 'origin' remote. This
> amounts to a workaround for git-review's tendency to frighten you into
> thinking you're about to submit more patches than the ones you are working
> on. It makes git-review more pleasant to work with, in my opinion.
>
> To enable this behavior, you first need to upgrade to the latest version of
> git-review, by running "pip install -U git-review". Then you need to create
> a configuration file: either /etc/git-review/git-review.conf (system-wide)
> or ~/.config/git-review/git-review.conf (user-specific).
>
> The file should contain these two lines:
>
> [gerrit]
> defaultremote = origin
>
> Once you've made the change, any new Gerrit repos you clone using an
> authenticated URI will just work.
>
> You'll need to perform an additional step to migrate existing repositories.
> In each repository, run the following commands:
>
>   git remote set-url origin $(git config --get remote.gerrit.url)
>   git remote rm gerrit
>   git review -s
>
> Hope you find this useful.
> _______________________________________________
> Wikitech-l mailing list
> Wikitech-l@lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l




-- 
З павагай,
Павел Селіцкас/Pavel Selitskas
Wizardist @ Wikimedia projects
_______________________________________________
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to