Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit » Does Egit support shallow clone yet?
Does Egit support shallow clone yet? [message #946737] Tue, 16 October 2012 08:59 Go to next message
Maxmelbin Neson is currently offline Maxmelbin Neson
Messages: 3
Registered: October 2012
Junior Member
It is an important use case in our organization to have ability to do shallow clone of git repositories.
Does the current implementation of JGit allow shallow clone?
Re: Does Egit support shallow clone yet? [message #947315 is a reply to message #946737] Tue, 16 October 2012 21:56 Go to previous messageGo to next message
Annamalai Chockalingam is currently offline Annamalai Chockalingam
Messages: 30
Registered: July 2009
Member
Some of the Replies and Bugs regarding Shallow Clone :

This is fixed based on this BUG Log
https://bugs.eclipse.org/bugs/show_bug.cgi?id=301627

But as of a StackOverFlow link which is dated on Aug 2012 it isnt working yet
I am unable to paste the link here .. please do visit StackOverFlow and search for Shallow Clone in JGIT

Regards
Malai
Re: Does Egit support shallow clone yet? [message #968233 is a reply to message #946737] Fri, 02 November 2012 05:55 Go to previous message
Maxmelbin Neson is currently offline Maxmelbin Neson
Messages: 3
Registered: October 2012
Junior Member
If we try to load an existing shallow clone, JGit crashes with error as shown below.

"Could not create the view: Walk failure.".

It is missing the parent commit of the deepest commit in the shallow clone:

Error log below:

org.eclipse.jgit.errors.MissingObjectException: Missing commit a71254bb3286faaccd62084c96d3d2f07f9fb0b5
at org.eclipse.jgit.storage.file.WindowCursor.open(WindowCursor.java:126)
at org.eclipse.jgit.revwalk.RevWalk.getCachedBytes(RevWalk.java:859)
at org.eclipse.jgit.revwalk.RevCommit.parseHeaders(RevCommit.java:136)
at org.eclipse.jgit.revwalk.PendingGenerator.next(PendingGenerator.java:148)
at org.eclipse.jgit.revwalk.DelayRevQueue.next(DelayRevQueue.java:86)
at org.eclipse.jgit.revwalk.FixUninterestingGenerator.next(FixUninterestingGenerator.java:77)
at org.eclipse.jgit.revwalk.StartGenerator.next(StartGenerator.java:181)
at org.eclipse.jgit.revwalk.RevWalk.next(RevWalk.java:420)
at org.eclipse.jgit.revwalk.RevWalk.iterator(RevWalk.java:1232)
at org.eclipse.jgit.revwalk.RevWalkUtils.find(RevWalkUtils.java:129)
at org.eclipse.jgit.revwalk.RevWalkUtils.count(RevWalkUtils.java:94)
at org.eclipse.jgit.lib.BranchTrackingStatus.of(BranchTrackingStatus.java:100)
at org.eclipse.egit.ui.internal.GitLabelProvider.getStyledTextFor(GitLabelProvider.java:178)
at org.eclipse.egit.ui.internal.repository.RepositoriesViewLabelProvider.getStyledText(RepositoriesViewLabelProvider.java:370)
at org.eclipse.ui.internal.navigator.extensions.SafeDelegateCommonLabelProvider.getStyledText(SafeDelegateCommonLabelProvider.java:118)
at org.eclipse.ui.internal.navigator.NavigatorContentServiceLabelProvider.findStyledText(NavigatorContentServiceLabelProvider.java:165)
at org.eclipse.ui.internal.navigator.NavigatorContentServiceLabelProvider.getStyledText(NavigatorContentServiceLabelProvider.java:151)
at org.eclipse.ui.internal.navigator.NavigatorDecoratingLabelProvider$StyledLabelProviderAdapter.getStyledText(NavigatorDecoratingLabelProvider.java:68)
at org.eclipse.jface.viewers.DelegatingStyledCellLabelProvider.getStyledText(DelegatingStyledCellLabelProvider.java:195)
at org.eclipse.jface.viewers.DecoratingStyledCellLabelProvider.getStyledText(DecoratingStyledCellLabelProvider.java:192)
at org.eclipse.ui.internal.navigator.NavigatorDecoratingLabelProvider.getText(NavigatorDecoratingLabelProvider.java:222)
at org.eclipse.jface.viewers.ViewerComparator.compare(ViewerComparator.java:136)
at org.eclipse.ui.navigator.CommonViewerSorter.compare(CommonViewerSorter.java:140)
at org.eclipse.jface.viewers.TreePathViewerSorter$1.compare(TreePathViewerSorter.java:105)
at java.util.Arrays.mergeSort(Unknown Source)
at java.util.Arrays.sort(Unknown Source)
at org.eclipse.jface.viewers.TreePathViewerSorter.sort(TreePathViewerSorter.java:103)
at org.eclipse.jface.viewers.AbstractTreeViewer.getSortedChildren(AbstractTreeViewer.java:624)
at org.eclipse.jface.viewers.AbstractTreeViewer$1.run(AbstractTreeViewer.java:805)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.jface.viewers.AbstractTreeViewer.createChildren(AbstractTreeViewer.java:782)
at org.eclipse.jface.viewers.TreeViewer.createChildren(TreeViewer.java:644)
at org.eclipse.jface.viewers.AbstractTreeViewer.createChildren(AbstractTreeViewer.java:753)
at org.eclipse.jface.viewers.AbstractTreeViewer.internalInitializeTree(AbstractTreeViewer.java:1533)
at org.eclipse.jface.viewers.TreeViewer.internalInitializeTree(TreeViewer.java:833)
at org.eclipse.jface.viewers.AbstractTreeViewer$5.run(AbstractTreeViewer.java:1517)
at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1443)
at org.eclipse.jface.viewers.TreeViewer.preservingSelection(TreeViewer.java:403)
at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1404)
at org.eclipse.jface.viewers.AbstractTreeViewer.inputChanged(AbstractTreeViewer.java:1510)
at org.eclipse.jface.viewers.ContentViewer.setInput(ContentViewer.java:280)
at org.eclipse.jface.viewers.StructuredViewer.setInput(StructuredViewer.java:1690)
at org.eclipse.ui.navigator.CommonNavigator.createPartControl(CommonNavigator.java:212)
at org.eclipse.egit.ui.internal.repository.RepositoriesView.createPartControl(RepositoriesView.java:331)
at org.eclipse.ui.internal.ViewReference.createPartHelper(ViewReference.java:375)
at org.eclipse.ui.internal.ViewReference.createPart(ViewReference.java:229)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
at org.eclipse.ui.internal.WorkbenchPage$ActivationList.setActive(WorkbenchPage.java:4317)
at org.eclipse.ui.internal.WorkbenchPage$18.runWithException(WorkbenchPage.java:3359)
at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4140)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3757)
at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:803)
at org.eclipse.ui.internal.Workbench$33.runWithException(Workbench.java:1600)
at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4140)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3757)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2609)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
Previous Topic:Is it possible to squash commit by rebasing?
Next Topic:EGit imported repositories are not connected to Git once added
Goto Forum:
  


Current Time: Thu Apr 24 11:20:10 EDT 2014

Powered by FUDForum. Page generated in 0.01522 seconds