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

Bug 352317

Summary: Re-sharing a project deletes its content
Product: [Technology] EGit Reporter: Rüdiger Herrmann <ruediger.herrmann>
Component: CoreAssignee: Project Inbox <egit.core-inbox>
Status: RESOLVED INVALID QA Contact:
Severity: critical    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Rüdiger Herrmann CLA 2011-07-18 05:06:03 EDT
Build Id: Indigo

Steps to reproduce:
1. Create a new (plug-in) project (didn't test with plain projects)
2. Start to share the project (i.e. select Team -> Share from the context menu)
3. create a new repository (e.g. foo) , the project to share is preselected in the table
4. Click 'Finish'
5. Disconnect the project
6. Delete the just created reprository from the file system
7. Share the project again
8. in the 'Configure Git Repository' dialog, create a new repository with the same name as before (foo) and select the project from the table
9. Click 'Finish'
-> The following error occurs (displayed in an error dialog and loged to the error log)
Failed to initialize Git team provider.
Errors occurred while refreshing resources with the local file system.
The project description file (.project) for 'git.test' is missing.  This file contains important information about the project.  The project will not function properly until this file is restored.
-> After that, the entire content of the project is deleted. The repository contains an empty 'bin' folder and the '.project' file. All other artefacts are gone for good.
Comment 1 Rüdiger Herrmann CLA 2011-07-18 07:17:33 EDT
I realized my mistake: disconnecting the project does not move it back to the location where it has been before it was shared. Thus, deleting the repository, also deletes the project.