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

Bug 326954

Summary: "Ignored Resources" added the command line cause persistant "Unknown" status in the commit dialog
Product: [Technology] EGit Reporter: Dobes Vandermeer <dobesv>
Component: CoreAssignee: Jens Baumgart <jens.baumgart>
Status: ASSIGNED --- QA Contact:
Severity: normal    
Priority: P3 CC: dobesv, eclipse.org, stefan.lay
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Dobes Vandermeer CLA 2010-10-04 13:53:49 EDT
Build Identifier: 20100218-1602

I had checked out some svn repositories into the git repository and all is well with command-line git as far as I am concerned.

However, in eclipse the commit dialog shows all the files within the .svn folders as Status "Unknown".  Checking off those items and hitting commit does nothing.

The issue seems to be related to EGit's support for the Window > Preferences > Team > "Ignored Resources"

Workaround:

If I remove ".svn" from the list of ignored resources and than disconnect and reconnect the git project the issue goes away.


Reproducible: Always

Steps to Reproduce:
1. In eclipse, go to your Window > Preferences > Team > Ignored Resources and make sure you have ".svn" selected
1. Create a git repository
2. Check out a project from SVN into that repository folder, disconnect it from eclipse if necessary (but without deleting the .svn folders)
3. Connect the project to the git repository
5. Run a Team > Commit on that project.  Note that egit ignores the files within .svn folders as indicated by the Ignored Resources setting.
6. Using command-line git, add the entire folder structure, including .svn folders, and commit.
7. Return to eclipse and attempt a commit again.  BUG: files within .svn folders show up with status "Unknown".  Committing them has no effect.
Comment 1 Dobes Vandermeer CLA 2010-10-04 13:58:49 EDT
(In reply to comment #0)
> Workaround:
> 
> If I remove ".svn" from the list of ignored resources and than disconnect and
> reconnect the git project the issue goes away.

Actually, it isn't necessary to remove ".svn" from the list of ignored resources; simply disconnecting and reconnecting egit to the project seems to resolve the issue.
Comment 2 François Rey CLA 2010-10-04 16:31:49 EDT
I can observe the same issue with nested CVS projects. Disconnecting/Resharing the project does also remove these "unknown" cvs files from the list of uncommitted files. 
However the disconnect+share workaround does not work in the case of nested git projects (fake submodule as in http://debuggable.com/posts/git-fake-submodules:4b563ee4-f3cc-4061-967e-0e48cbdd56cb).