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

Bug 368976

Summary: Ghost project when switching branch after deleting project
Product: [Technology] EGit Reporter: Dani Megert <daniel_megert>
Component: UIAssignee: Project Inbox <egit.ui-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: markus.kell.r
Version: 1.3   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Dani Megert CLA 2012-01-18 10:07:46 EST
1.3.0.201201172015

The fix for bug 350866 (Projects disappear when switching branches) causes problems when a project gets deleted in a branch: we end up with a ghost project.

Steps to reproduce:

1. create branch 'A' from a certain remote branch
2. create branch 'B' from a certain remote branch
2. import a project
3. delete the project and commit the change
4. switch back to branch 'A'

==> The deleted project appears again but it is empty and not filled with the content from branch 'A'.
Comment 1 Kevin Sawicki CLA 2012-01-23 12:47:57 EST
Was the project only imported after branch B was created and checked out?
Comment 2 Dani Megert CLA 2012-01-24 08:50:39 EST
> 2. import a project

should be "3."

I import the project only after creating the branch (checked it out automatically during creation).

Just tried again using 1.3.0.201201221914.
Comment 3 Kevin Sawicki CLA 2012-01-24 13:25:20 EST
I'm not having success reproducing this.

When you switch back to A, the project is re-added and open but missing content, so the .project file is there but none of the other files?

Is the repository public that this is occurring with?
Comment 4 Dani Megert CLA 2012-01-25 07:06:27 EST
(In reply to comment #3)
> I'm not having success reproducing this.

I just tried with 1.3.0.201201250623 and couldn't reproduce either.