|Re: folder ignored in submodule appears as tracked [message #1746157 is a reply to message #1746122]
||Mon, 24 October 2016 08:12
| Christian Halstrick
Registered: July 2009
I can't reproduce this. I did the following|
- create java project sub1 in folder <sub1-path> and put it under git control. Created initial commit
- create java project root in folder <root-path> and put it under git control. Created initial commit
- from "Git Repositories view" add a submodule to project "root". Path was "plugins/sub1" and URI was "file:///<sub1-path>". Committed in project "root" this change (if you inspect it in history view thats a change to ".gitmodules" and to "plugins/s1")
- with an external editor modified "<root-path>/plugins/sub1/.gitignore". Added line "/trash"
- In Eclipse commited the change to the ,gitignore file
- In Eclipse created in <root-path>/plugins/sub1/trash/x and <root-path>/plugins/sub1/other/y
- The icons for folder <root-path>/plugins/sub1/trash and <root-path>/plugins/sub1/other are as expected: trash is not marked and other is marked as dirty. Also the staging view only shows me <root-path>/plugins/sub1/other/y as dirty file and doesn't mention <root-path>/plugins/sub1/trash/x.
Do these exact steps work for you? I guess there is something in your workflow which reveals this potential EGit bug.
Another question: what exactly is the content of your .gitignore file corresponding to my <root-path>/plugins/sub1/.gitignore
Powered by FUDForum
. Page generated in 0.03453 seconds