Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 345585 - EGit does not prune empty folders when switching branches
Summary: EGit does not prune empty folders when switching branches
Status: RESOLVED WORKSFORME
Alias: None
Product: EGit
Classification: Technology
Component: Core (show other bugs)
Version: 1.0   Edit
Hardware: PC Windows Vista
: P3 major with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-12 07:49 EDT by tmc CLA
Modified: 2012-10-20 16:22 EDT (History)
5 users (show)

See Also:


Attachments

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