EGit May Eat Your Project
I moved a few client repositories over to Git from Subversion over the weekend and I started using EGit. It works pretty well, other than that it’s missing the Team Synchronize functionality, which is sorely missed. The most you get is a single file diff. The only thing you have to watch out for is renaming projects. For some reason, and this goes back to March 2009 I guess, it loses its configuration. None of the decorators will be there anymore and there will be no mention of your respository. If you check the Error Log, you’ll see an error something like this:
Git team provider configuration has gone missing. java.io.FileNotFoundException: /home/xxx/workspace/.metadata/.plugins/org.eclipse.core.resources/.projects/<projectname>/org.eclipse.egit.core/GitProjectData.properties (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:106) at org.eclipse.egit.core.project.GitProjectData.load(GitProjectData.java:402) at org.eclipse.egit.core.project.GitProjectData.get(GitProjectData.java:165) at org.eclipse.egit.core.GitProvider.getData(GitProvider.java:69) at org.eclipse.egit.core.project.RepositoryMapping.getMapping(RepositoryMapping.java:244) at org.eclipse.egit.ui.Activator$RCS.run(Activator.java:322) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
It’s easily fixed, though. Just recreate that file with contents like this:
#GitProjectData #Mon Mar 29 08:01:28 CDT 2010 .gitdir=.git
Voila.

EGit May Eat Your Project by cum grano salis — nobody likes a clever bastard, unless otherwise expressly stated, is licensed under a Creative Commons Attribution-Noncommercial-No Derivative Works 3.0 United States License.

Leave a Reply
You must be logged in to post a comment.