Last modified: 2014-11-17 21:36:25 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T59680, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 57680 - git-review should be set up so it uses a single remote
git-review should be set up so it uses a single remote
Status: PATCH_TO_REVIEW
Product: MediaWiki-Vagrant
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-11-27 20:29 UTC by Tisza Gergő
Modified: 2014-11-17 21:36 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Tisza Gergő 2013-11-27 20:29:50 UTC
When I use git-review with one of the repositories installed by vagrant, I end up with two remotes, 'origin' and 'gerrit'. When I follow the instructions on the MediaWiki page and set things up manually, there is only 'origin', and git-review behaves a lot better. The difference is probably caused by

[gerrit]
defaultremote = origin

in ~/.config/git-review/git-review.conf - this should be added by default.
Comment 1 Bryan Davis 2014-07-13 19:59:06 UTC
I don't think that MediaWiki-Vagrant should be attempting to modify anything in $HOME on the host machine. Are you wanting a git-review.conf created for the vagrant user account in the guest VM? This may all be made moot if Yuri finds a solution for bug 46870.
Comment 2 Tisza Gergő 2014-07-14 03:43:59 UTC
For the guest VM, yes. I'm not sure bug 46870 affects this; for one thing, not every extension has a vagrant role. Also, I would expect vagrant to respect my defaultremote setting when cloning extensions (which it would if you simply run git-review -s instead of creating remotes by hand, which seems a whole lot safer anyway.)

Alternatively, you might try to look for a defaultremote setting on the host machine and copy that if it exists.
Comment 3 Ori Livneh 2014-07-14 03:55:22 UTC
(In reply to Tisza Gergő from comment #0)
> this should be added by default.

Yeah, I agree. It makes git-review saner.
Comment 4 Gerrit Notification Bot 2014-07-14 03:57:12 UTC
Change 146014 had a related patch set uploaded by Ori.livneh:
git-review: configure 'origin' as the default remote

https://gerrit.wikimedia.org/r/146014
Comment 5 Bryan Davis 2014-11-17 21:36:25 UTC
Bulk unassigning bugs from Ori.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links