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

Bug 337566

Summary: "Add" command does not add empty directories
Product: [Technology] EGit Reporter: Kay Huber <quorg.xtn>
Component: CoreAssignee: Project Inbox <egit.core-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: stefan.lay
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Screenshot of the two projects being tracked except the HelloWorld/src folder none

Description Kay Huber CLA 2011-02-18 08:55:53 EST
Steps to reproduce:

* On empty workspace, create two java projects "HelloWorld", "HelloWorld2"
* Share both projects in a (local) git repository
* In HelloWorld2 create a class "Test" in the "src" folder
* In Package Explorer, select both projects, right click and click "Team" > "Add"

Result: 
* HelloWorld2 is getting tracked completely (including metadata files like .classpath, .project as well as src folder and Test.java source file)
* HelloWorld itself (as well as metadata files like .classpath, .project etc.) is getting tracked
* HelloWorld/src (which is empty) is *not* tracked

See screenshot for a quick glimpse on the examples result.

Is that intentional?
Comment 1 Kay Huber CLA 2011-02-18 08:56:46 EST
Created attachment 189273 [details]
Screenshot of the two projects being tracked except the HelloWorld/src folder
Comment 2 Stefan Lay CLA 2011-02-21 08:38:13 EST
This is intentional. Git does not track directories. It tracks file content.