Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 311315

Summary: Refreshing remote URLs requires workbench restart
Product: [Technology] EGit Reporter: Chris West (Faux) <eclipse>
Component: CoreAssignee: Project Inbox <egit.core-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: minor    
Priority: P3 CC: caniszczyk
Version: unspecified   
Target Milestone: 0.8.0   
Hardware: PC   
OS: Windows Vista   
Whiteboard:

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 ***