| Summary: | git clone fails for org.eclipse.mdt | ||
|---|---|---|---|
| Product: | [Technology] EGit | Reporter: | Erhard Weinell <weinell> |
| Component: | Core | Assignee: | Project Inbox <egit.core-inbox> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | major | ||
| Priority: | P3 | CC: | caniszczyk, matthias.sohn, sop |
| Version: | unspecified | ||
| Target Milestone: | 0.10.0-M1 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
|
Description
Erhard Weinell
I tried to reproduce this problem with the current stable-0.9 jgit (0e8ef7784) and egit (06d14b39) version and hit another exception : org.eclipse.jgit.errors.TransportException at org.eclipse.jgit.transport.BasePackFetchConnection.doFetch(BasePackFetchConnection.java:289) at org.eclipse.jgit.transport.BasePackFetchConnection.fetch(BasePackFetchConnection.java:224) at org.eclipse.jgit.transport.FetchProcess.fetchObjects(FetchProcess.java:210) at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:171) at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:111) at org.eclipse.jgit.transport.Transport.fetch(Transport.java:880) at org.eclipse.egit.core.op.CloneOperation.doFetch(CloneOperation.java:201) at org.eclipse.egit.core.op.CloneOperation.run(CloneOperation.java:119) at org.eclipse.egit.ui.internal.clone.GitCloneWizard.executeCloneOperation(GitCloneWizard.java:249) at org.eclipse.egit.ui.internal.clone.GitCloneWizard.access$3(GitCloneWizard.java:242) at org.eclipse.egit.ui.internal.clone.GitCloneWizard$4.run(GitCloneWizard.java:223) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) Caused by: java.lang.UnsupportedOperationException at org.eclipse.jgit.storage.file.CachedObjectDirectory.openObject2(CachedObjectDirectory.java:198) at org.eclipse.jgit.storage.file.LargePackedDeltaObject.openStream(LargePackedDeltaObject.java:176) at org.eclipse.jgit.lib.ObjectLoader.getCachedBytes(ObjectLoader.java:195) at org.eclipse.jgit.transport.IndexPack.fixThinPack(IndexPack.java:616) at org.eclipse.jgit.transport.IndexPack.index(IndexPack.java:426) at org.eclipse.jgit.transport.BasePackFetchConnection.receivePack(BasePackFetchConnection.java:647) at org.eclipse.jgit.transport.BasePackFetchConnection.doFetch(BasePackFetchConnection.java:279) ... 11 more (In reply to comment #1) > I tried to reproduce this problem with the current stable-0.9 jgit (0e8ef7784) > and egit (06d14b39) version and hit another exception : > I think http://egit.eclipse.org/r/1602 fixes this. Fixed by http://egit.eclipse.org/r/1602 Reopening for more investigation... At the moment, the workaround is to select all branches or clone from the git CLI and then import. I tried with jgit/egit 0.9.3 in the debugger, it's failing on object 255bcb3f1b0a94afee327fdfb80b39b5438f4e28 in pack pack-14e306e6c06fbd28c12ab11eecc3841196046851.pack, it fails when cloning only the master branch. When cloning all branches there is no error. here the stack trace for cloning master only org.eclipse.jgit.errors.TransportException at org.eclipse.jgit.transport.BasePackFetchConnection.doFetch(BasePackFetchConnection.java:289) at org.eclipse.jgit.transport.BasePackFetchConnection.fetch(BasePackFetchConnection.java:224) at org.eclipse.jgit.transport.FetchProcess.fetchObjects(FetchProcess.java:210) at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:171) at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:111) at org.eclipse.jgit.transport.Transport.fetch(Transport.java:880) at org.eclipse.egit.core.op.CloneOperation.doFetch(CloneOperation.java:201) at org.eclipse.egit.core.op.CloneOperation.run(CloneOperation.java:119) at org.eclipse.egit.ui.internal.clone.GitCloneWizard.executeCloneOperation(GitCloneWizard.java:249) at org.eclipse.egit.ui.internal.clone.GitCloneWizard.access$3(GitCloneWizard.java:242) at org.eclipse.egit.ui.internal.clone.GitCloneWizard$4.run(GitCloneWizard.java:223) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) Caused by: java.lang.UnsupportedOperationException at org.eclipse.jgit.storage.file.CachedObjectDirectory.openObject2(CachedObjectDirectory.java:198) at org.eclipse.jgit.storage.file.LargePackedDeltaObject.openStream(LargePackedDeltaObject.java:176) at org.eclipse.jgit.lib.ObjectLoader.getCachedBytes(ObjectLoader.java:195) at org.eclipse.jgit.transport.IndexPack.fixThinPack(IndexPack.java:616) at org.eclipse.jgit.transport.IndexPack.index(IndexPack.java:426) at org.eclipse.jgit.transport.BasePackFetchConnection.receivePack(BasePackFetchConnection.java:647) at org.eclipse.jgit.transport.BasePackFetchConnection.doFetch(BasePackFetchConnection.java:279) ... 11 more (In reply to comment #4) > Reopening for more investigation... http://egit.eclipse.org/r/1619 fixes the fixThinPack() stack trace in comment #2 that I completely failed to consider before. :-) Fixed by commit 2ee6d95e5b24af2e462044053346df5bf1c440e9 |