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

Bug 314035

Summary: Project name lost
Product: [Technology] EGit Reporter: Lars Vogel <Lars.Vogel>
Component: UIAssignee: Chris Aniszczyk <caniszczyk>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: alex.blewitt, caniszczyk, ekke, Lars.Vogel
Version: unspecified   
Target Milestone: 0.9.0-M2   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Lars Vogel CLA 2010-05-23 02:21:31 EDT
I create a project "de.vogella.test.myname" and push it to a repository "de.vogella.test.differentname" on GitHub. If I delete the project locally and clone it from GitHub I end up with the project named "de.vogella.test.differentname". 

I would expect that the project name is independent of the Git repository name.

Example: 

git+ssh://git@github.com/vogella/de.vogella.test.differentname.git

Best regards, Lars
Comment 1 Alex Blewitt CLA 2010-05-23 03:00:01 EDT
http://github.com/vogella/de.vogella.test.differentname/blob/master/.project

The project name is stored in the .project file, but the project name itself seems to be defaulting to the repository name upon checkout. I'd expect it to take on the name of the repository for the file system, but it's odd that the project name is being changed. 

Does the local .project get changed as well?
Comment 2 Lars Vogel CLA 2010-05-23 13:07:15 EDT
No .project is still correct after checkout.
Comment 3 Benjamin Muskalla CLA 2010-08-02 07:31:55 EDT
Code review at http://egit.eclipse.org/r/1207
Comment 4 Chris Aniszczyk CLA 2010-08-04 11:43:40 EDT
Fixed with 3f2df4e8ddf1206c8ff1cdb93d4c990666d59284

Thanks Benny.