Community
Participate
Working Groups
Build Identifier: M20110210-1200 I have egit installed as well as git extensions. Usually they do fine intermixing. I add stuff with egit, but alwasy commit using gitextensions. Now I opened one of my projects in Qt Creator and that also adds files to the repository. When switching back to eclipse I get this error in an infinite loop. Fortunately the dialog is not modal. This stopped when I committed with git extensions. Checking for corruption with git only showed a few dangling blobs... This is the stack trace: An error has occured while scanning for changes org.eclipse.jgit.errors.CorruptObjectException: Unknown index version (or corrupt index): 3 at org.eclipse.jgit.lib.GitIndex$Header.read(GitIndex.java:854) at org.eclipse.jgit.lib.GitIndex$Header.<init>(GitIndex.java:843) at org.eclipse.jgit.lib.GitIndex.read(GitIndex.java:247) at org.eclipse.jgit.lib.GitIndex.rereadIfNecessary(GitIndex.java:159) at org.eclipse.jgit.lib.Repository.getIndex(Repository.java:871) at org.eclipse.jgit.storage.file.FileRepository.scanForRepoChanges(FileRepository.java:381) at org.eclipse.egit.ui.Activator$RepositoryChangeScanner.run(Activator.java:438) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) Reproducible: Didn't try
This won't be fixed until the deprecated GitIndex class dies. :-(
I've got this issue when enabling git sparse checkouts.
I would also like to be able to use sparse checkouts
With http://egit.eclipse.org/r/#change,4355 applied, for me this exception is gone. Though not visible in egit, it now seems to work with sparse checkouts.
this can't occur anymore in current JGit since GitIndex was completely replaced by DirCache which should handle this correctly