Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 368976 - Ghost project when switching branch after deleting project
Summary: Ghost project when switching branch after deleting project
Status: RESOLVED WORKSFORME
Alias: None
Product: EGit
Classification: Technology
Component: UI (show other bugs)
Version: 1.3   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-18 10:07 EST by Dani Megert CLA
Modified: 2012-01-25 07:07 EST (History)
1 user (show)

See Also:


Attachments

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