Last modified: 2014-11-17 21:36:16 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 T64627, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 62627 - Running vagrant git-update does not update remote branch
Running vagrant git-update does not update remote branch
Status: NEW
Product: MediaWiki-Vagrant
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Low minor
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-03-13 22:59 UTC by wctaiwan
Modified: 2014-11-17 21:36 UTC (History)
2 users (show)

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


Attachments

Description wctaiwan 2014-03-13 22:59:36 UTC
After running vagrant git-update, git status reports that the local branch is ahead of the remote branch by n commits. This is because run-git-update works by calling "git pull $url", where $url is an HTTPS version of the remote's URL. Instead of fetching updates from the remote for the local branch, this causes git to fetch updates from the the repository specified by $url, and the remote branch is not updated.

A potential solution may be to set the remote's URL to the HTTPS version, run git pull, and then change it back to the original URL (which may be HTTPS or SSH).

The remote branch can be manually updated afterwards by running "git remote update". This needs to be done for each updated branch.
Comment 1 Gerrit Notification Bot 2014-03-14 01:13:25 UTC
Change 118653 had a related patch set uploaded by Wctaiwan:
Temporarily change remote URL during git-update

https://gerrit.wikimedia.org/r/118653
Comment 2 Gerrit Notification Bot 2014-03-18 10:28:09 UTC
Change 118653 merged by jenkins-bot:
Use 'git pull' for non-SSH URLs in run-git-update

https://gerrit.wikimedia.org/r/118653
Comment 3 wctaiwan 2014-03-22 03:22:31 UTC
This is partially fixed with the patch. Remote branches on repositories that don't require authentication are now updated, but the issue remains for SSH remotes.
Comment 4 Bryan Davis 2014-11-17 21:36:16 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