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

Bug 324611

Summary: lsgit clone fails
Product: [Technology] EGit Reporter: Timo A. Hummel <privat>
Component: CoreAssignee: Project Inbox <egit.core-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: major    
Priority: P3 CC: caniszczyk
Version: 0.8.1   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Timo A. Hummel CLA 2010-09-06 22:52:12 EDT
GIT clone fails. I used "import git repository", then entered "git://github.com/doctrine/doctrine2.git" as address. It checks out, but at the end it shows "Cloning Git Repository failed".

I'm using 0.8.4, but the bug tracker doesn't let me choose that version.


java.lang.reflect.InvocationTargetException
at org.eclipse.egit.core.op.CloneOperation.run(CloneOperation.java:130)
at org.eclipse.egit.ui.internal.clone.GitCloneWizard$2.run(GitCloneWizard.java:178)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
Caused by: java.lang.NullPointerException
at org.eclipse.jgit.lib.GitIndex$Entry.<init>(GitIndex.java:435)
at org.eclipse.jgit.lib.GitIndex.addEntry(GitIndex.java:847)
at org.eclipse.jgit.lib.WorkDirCheckout$1.visitEntry(WorkDirCheckout.java:183)
at org.eclipse.jgit.lib.IndexTreeWalker.finishVisitTree(IndexTreeWalker.java:199)
at org.eclipse.jgit.lib.IndexTreeWalker.walk(IndexTreeWalker.java:136)
at org.eclipse.jgit.lib.IndexTreeWalker.walk(IndexTreeWalker.java:114)
at org.eclipse.jgit.lib.WorkDirCheckout.checkoutOutIndexNoHead(WorkDirCheckout.java:167)
at org.eclipse.jgit.lib.WorkDirCheckout.checkout(WorkDirCheckout.java:144)
at org.eclipse.egit.core.op.CloneOperation.doCheckout(CloneOperation.java:227)
at org.eclipse.egit.core.op.CloneOperation.run(CloneOperation.java:121)
... 2 more
Root exception:
java.lang.NullPointerException
at org.eclipse.jgit.lib.GitIndex$Entry.<init>(GitIndex.java:435)
at org.eclipse.jgit.lib.GitIndex.addEntry(GitIndex.java:847)
at org.eclipse.jgit.lib.WorkDirCheckout$1.visitEntry(WorkDirCheckout.java:183)
at org.eclipse.jgit.lib.IndexTreeWalker.finishVisitTree(IndexTreeWalker.java:199)
at org.eclipse.jgit.lib.IndexTreeWalker.walk(IndexTreeWalker.java:136)
at org.eclipse.jgit.lib.IndexTreeWalker.walk(IndexTreeWalker.java:114)
at org.eclipse.jgit.lib.WorkDirCheckout.checkoutOutIndexNoHead(WorkDirCheckout.java:167)
at org.eclipse.jgit.lib.WorkDirCheckout.checkout(WorkDirCheckout.java:144)
at org.eclipse.egit.core.op.CloneOperation.doCheckout(CloneOperation.java:227)
at org.eclipse.egit.core.op.CloneOperation.run(CloneOperation.java:121)
at org.eclipse.egit.ui.internal.clone.GitCloneWizard$2.run(GitCloneWizard.java:178)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)



-- Configuration Details --
Product: Eclipse 1.3.0.20100617-0520 (org.eclipse.epp.package.php.product)
Installed Features:
 org.eclipse.platform 3.6.0.v20100602-9gF78GpqFt6trOGhL60z0oEx3fz-JKNwxPY
Comment 1 Chris Aniszczyk CLA 2010-09-06 22:54:49 EDT
This is because we don't support submodules yet...

If you try this using a 0.9 build, you should see a message indicating this.

*** This bug has been marked as a duplicate of bug 314853 ***