Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 327975 - Can't import project when project name is different from repository name
Summary: Can't import project when project name is different from repository name
Status: RESOLVED FIXED
Alias: None
Product: EGit
Classification: Technology
Component: UI (show other bugs)
Version: 0.9.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 3.2   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-16 07:55 EDT by Dariusz Luksza CLA
Modified: 2013-12-08 19:03 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dariusz Luksza CLA 2010-10-16 07:55:07 EDT
Recently I've created project egit-demo1 and pushed it into remote named as egit-demo.git. Right now when I want to clone this project into eclipse I've got an exception:
org.eclipse.core.internal.resources.ResourceException: Invalid project description.
at org.eclipse.core.internal.resources.Project.checkDescription(Project.java:162)
at org.eclipse.core.internal.resources.Project.assertCreateRequirements(Project.java:52)
at org.eclipse.core.internal.resources.Project.create(Project.java:274)
at org.eclipse.core.internal.resources.Project.create(Project.java:256)
at org.eclipse.egit.ui.internal.clone.GitProjectsImportPage.createExistingProject(GitProjectsImportPage.java:567)
at org.eclipse.egit.ui.internal.clone.GitProjectsImportPage.access$7(GitProjectsImportPage.java:542)
at org.eclipse.egit.ui.internal.clone.GitProjectsImportPage$9.execute(GitProjectsImportPage.java:496)
at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:106)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1975)
at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:118)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
Contains: OK
Contains: /home/lock/workspace/egit-demo/egit-demo overlaps the location of another project: 'egit-demo'

The current workspace (egit-demo) does not contains any other projects. Everything works fine when I hanged project name from egit-demo1 to egit-demo in .project file.
Comment 1 Robin Stocker CLA 2013-07-07 11:12:18 EDT
Could not reproduce the problem here -> worksforme.
Comment 2 Robin Stocker CLA 2013-10-03 13:19:23 EDT
I could reproduce the problem now, reopening. Fix coming.
Comment 3 Robin Stocker CLA 2013-10-03 13:20:51 EDT
Fix: https://git.eclipse.org/r/17004

Note that this is similar to bug 322260, but with "Import existing projcts" instead of "Import as general project".
Comment 4 Matthias Sohn CLA 2013-12-08 19:03:46 EST
merged as dfabf79e4c01c381e84fd302001055de58b034c3