Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 314035 - Project name lost
Summary: Project name lost
Status: RESOLVED FIXED
Alias: None
Product: EGit
Classification: Technology
Component: UI (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 0.9.0-M2   Edit
Assignee: Chris Aniszczyk CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-23 02:21 EDT by Lars Vogel CLA
Modified: 2010-08-04 11:43 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.