Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 311315 - Refreshing remote URLs requires workbench restart
Summary: Refreshing remote URLs requires workbench restart
Status: CLOSED DUPLICATE of bug 304182
Alias: None
Product: EGit
Classification: Technology
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows Vista
: P3 minor (vote)
Target Milestone: 0.8.0   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-02 12:38 EDT by Chris West (Faux) CLA
Modified: 2010-05-02 12:43 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris West (Faux) CLA 2010-05-02 12:38:19 EDT
Build Identifier: I20100413-1521

EGit 0.7.1

As EGit doesn't provide a mechanism to edit "remote" URLs, it's necessary to do it from the command line with "git remote set-url".

To get these changes picked up in EGit, it's necessary to restart the workbench.  Even disconnecting the team provider and reattaching it doesn't cause the change to be picked up.

Reproducible: Always

Steps to Reproduce:
1. Have a project associated with EGit.
1a. Use Team -> Push To.. to work out the origin url.  e.g. this reads "origin: git://git.foo.com/git/bar.git".
1b. Confirm that this matches git remote -v (noting bug 311313).
2. git remote set-url origin git://ponies/pooooooooonies.git.
3. Refresh the project.
4. Team -> Disconnect the project from git.
5. Team -> Share project -> git -> etc.
6. Team -> Push to.. 
7. Observe the target still reading "origin: git://git.foo.com/git/bar.git".
8. File -> Restart.
9. Team -> Push to.. should now read "origin: git://ponies/pooooooooonies.git".
Comment 1 Chris Aniszczyk CLA 2010-05-02 12:43:09 EDT
Can you try a newer build?

We added support to specify remotes recently via bug 304182.

*** This bug has been marked as a duplicate of bug 304182 ***