pull from bundle file [message #733677] |
Wed, 05 October 2011 08:07  |
Eclipse User |
|
|
|
I have a clone on an offline machine that's configured to pull from a local file. I can keep it in sync in with its origin by creating a bundle on the origin host, transferring it to the right path on the offline host via cd-r, and then running 'git pull'. Everything works ok with command-line Git.
But if I pull from egit I get an error -- see below for details. The reference in the MissingObjectException below is the one in the bundle file, the one I'm trying to pull. If I run 'git bundle list-heads <path>' I get:
3562b88c33ad232000acc7b2424478098e21bfb6 HEAD
as expected.
Is this feature of Git currently expected to work in jgit? If not, fine, I'll add an enhancement request. If it is expected to work, what am I doing wrong?
eclipse build = M20110909-1335
egit build = 1.2.0.201110040623
Error trace:
org.eclipse.jgit.api.errors.JGitInternalException: Exception caught during execution of merge command. org.eclipse.jgit.errors.MissingObjectException: Missing commit 3562b88c33ad232000acc7b2424478098e21bfb6
at org.eclipse.jgit.api.MergeCommand.call(MergeCommand.java:254)
at org.eclipse.jgit.api.PullCommand.call(PullCommand.java:287)
at org.eclipse.egit.core.op.PullOperation$1.run(PullOperation.java:83)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2326)
at org.eclipse.egit.core.op.PullOperation.execute(PullOperation.java:108)
at org.eclipse.egit.ui.internal.pull.PullOperationUI.execute(PullOperationUI.java:117)
at org.eclipse.egit.ui.internal.pull.PullOperationUI$1.run(PullOperationUI.java:92)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: org.eclipse.jgit.errors.MissingObjectException: Missing commit 3562b88c33ad232000acc7b2424478098e21bfb6
at org.eclipse.jgit.storage.file.WindowCursor.open(WindowCursor.java:126)
at org.eclipse.jgit.revwalk.RevWalk.getCachedBytes(RevWalk.java:855)
at org.eclipse.jgit.revwalk.RevCommit.parseHeaders(RevCommit.java:136)
at org.eclipse.jgit.revwalk.RevWalk.markStart(RevWalk.java:282)
at org.eclipse.jgit.revwalk.RevWalk.isMergedInto(RevWalk.java:396)
at org.eclipse.jgit.api.MergeCommand.call(MergeCommand.java:170)
... 8 more
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06264 seconds