Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 352317 - Re-sharing a project deletes its content
Summary: Re-sharing a project deletes its content
Status: RESOLVED INVALID
Alias: None
Product: EGit
Classification: Technology
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 critical (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-18 05:06 EDT by Rüdiger Herrmann CLA
Modified: 2011-07-18 07:17 EDT (History)
0 users

See Also:


Attachments

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