Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 322260 - git not importable as Project after checkout
Summary: git not importable as Project after checkout
Status: RESOLVED FIXED
Alias: None
Product: EGit
Classification: Technology
Component: Core (show other bugs)
Version: 0.8.1   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 0.9.0-M2   Edit
Assignee: Jens Baumgart CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-10 13:44 EDT by Samuel Suther CLA
Modified: 2013-10-03 13:26 EDT (History)
8 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Samuel Suther CLA 2010-08-10 13:44:38 EDT
EGIT 0.8.4 on Eclipse SDK

Version: 3.5.2
Build id: M20100211-1343

1) 
Go to GIT-Explorer Perspective and add this (http://projects.ceondo.com/p/indefero/source/help/) as git repo.

2) 
check it out somewhere into the eclipse_workspace (....../eclipse_workspace/indefero_test)

3) BUG 1
After checkout - right-Click to the new entry on left side and choose "import projects"
No existing git-repos shown! Only the two (instead of three) fields on dialoge: Method for project creation - Method for sharing Projects after project creation

Click on Next show an error "/home/suther/Firma/Software/eclipse_workspace/indefero_test overlaps the location of another project: 'indefero_test'"
Is a not solveable problem, cause the "Directory" Field is disabled!

4) BUG 2
Way two to import a new git as Project: File >> Import >> Git >> Projects from GIT
The cheked out git repository is shown here, and choosable. I choose it.
Click to next see THREE fields. Two like described in BUG 1, and below the second field a field to choose the existing "Working Directory"
I Choose it and click next.
Same error like above... with same result:
"/home/suther/Firma/Software/eclipse_workspace/indefero_test overlaps the location of another project: 'indefero_test'"


5) So i cceckout indefero-page again, but this time not to the eclipse_workspace folder, but to /home/samuel/tmp.

Enter the Data, check out the git, new git is appear on left side below the broken-one (Window "Git Repositories")
File >> New Project >> php Project.
Import >> Git >> Git Project >> git folder (on /home/samuel/tmp/) and >> import as general Project >> next.

Error appears: "Project indefero already exists". rename Project name from indefero to indefero_git >> click finish >> a complete new Project is createt with the git sources.
Comment 1 Chris Aniszczyk CLA 2010-08-11 16:41:22 EDT
Fixed with 247ef7cd289b745715a7294517a558fdc70008c2.

Thanks Jens.
Comment 2 Andre Berg CLA 2011-01-03 18:55:26 EST
Is this resolved fixed for Mac OS X as well? Because with my EGit 0.9.1 and Eclipse 3.6.1 combo on OS X, the option to "Import as General Project" after clone/checkout leads to the same error message: "<project> overlaps another project", and while the future project name in that dialog is editable the  directory path that should reflect the future name in its path end is grayed out and doesn't update when I change the name.
Comment 3 Chris Aniszczyk CLA 2011-01-03 18:56:51 EST
Please try with 'EGit 0.10.1' which is the latest released version.

If you hit the issue, report the bug.
Comment 4 Andre Berg CLA 2011-01-04 00:04:32 EST
Oh, I'm sorry, the update feature didn't show me there's a new EGit version out. 

I tried it now with 0.10.1 and the result is the same: 
Importing as General Project after cloning is only possible if the clone didn't happen into the active workspace because the "Directory" text field that is grayed out doesn't reflect the value entered in "Project name" as its last path component.
Comment 5 Matthew Webber CLA 2011-04-20 08:03:14 EDT
The problem is still there with Egit 0.11.3 in Eclipse 3.6.2.
Comment 6 pohl CLA 2011-05-03 14:45:12 EDT
I just encountered this with EGit 0.12.1 on Eclipse Helios Service Release 2.  (MacOS X 10.6.7).  I see that this issue is marked as "RESOLVED FIXED".  Is there another issue tracking this problem now?
Comment 7 Jean-Karim Bockstael CLA 2012-08-02 03:47:25 EDT
Indeed this isn't yet fixed, I've come across the same bug. Eclipse 4.2.0 EGit 2.0.0.201206130900-r, OS X 10.7.4.
Comment 8 Charles Williams CLA 2012-10-21 07:29:18 EDT
This bug is still in Eclipse 3.7.2 with egit 2.1.0.201209190230-r and Eclipse 4.2.1 with the same version of egit.

I and about 30 co-workers are now migrating most of our Git projects to Netbeans until Eclipse figures out how to do an import correctly.
Comment 9 Robin Stocker CLA 2013-10-03 13:26:35 EDT
Are you sure you also hit the bug using "Import as general project"? That case works here. If not, please file a new bug with the exact steps to reproduce and add a comment here linking to it.

What did not work was using "Import existing projects" from the Git import wizard, in the case when the repository contains a .project, but with a different name than the directory on the file system. Please see bug 327975 for that, which has a proposed fix.