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

Bug 345585

Summary: EGit does not prune empty folders when switching branches
Product: [Technology] EGit Reporter: tmc <terry>
Component: CoreAssignee: Project Inbox <egit.core-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: major    
Priority: P3 CC: bradcupit, emond.papegaaij, robin, sbouchet, xmedeko
Version: 1.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows Vista   
Whiteboard:

Description tmc CLA 2011-05-12 07:49:58 EDT
Hi All

Using Helios and the latest nightly build - 1.0.0.201105100915

If I use the Msysgit command line from a master branch in a clean working directory and type:

git checkout mybranch
git checkout master

The working directory is the same as it originally was i.e. just the contents of the master branch.

If I do the same in EGit, and mybranch contain directories that are not in master then these empty directories hang around in the working directory after the switch back to the master branch. 

The empty directories have the 'untracked' icon in EGit.

Shouldn't EGit prune these folders when branches are switched?

Cheers
Comment 1 Bouchet Stéphane CLA 2011-09-16 06:09:24 EDT
Same problem using linux , indigo and egit 1.0.0
Comment 2 Ondrej Medek CLA 2012-03-12 10:52:37 EDT
I have been switching branches with EGit 1.2 and EGit 1.3, looking especially it this problem occurs but have not observed it. everything has been o'right.
Comment 3 Robin Stocker CLA 2012-10-20 16:22:48 EDT
I also never had this problem. Was probably fixed in the meantime, closing as WORKSFORME.