Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » pull from bundle file(does jgit/egit support pulling from a bundle file?)
pull from bundle file [message #733677] Wed, 05 October 2011 12:07 Go to next message
R Shapiro is currently offline R ShapiroFriend
Messages: 386
Registered: June 2011
Senior Member
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



Re: pull from bundle file [message #734365 is a reply to message #733677] Fri, 07 October 2011 14:42 Go to previous messageGo to next message
R Shapiro is currently offline R ShapiroFriend
Messages: 386
Registered: June 2011
Senior Member
I'll simplify the question: does jgit/egit currently include support for pulling updates a from bundle file?

Re: pull from bundle file [message #734432 is a reply to message #734365] Fri, 07 October 2011 18:39 Go to previous message
Chris Aniszczyk is currently offline Chris AniszczykFriend
Messages: 674
Registered: July 2009
Senior Member
git-bundle isn't supported yet by JGit, I encourage you to file a bug against JGit...

https://bugs.eclipse.org/bugs/enter_bug.cgi?product=JGit&rep_platform=All&op_sys=All

I'd also file a bug against EGit... for the UI bits...

https://bugs.eclipse.org/bugs/enter_bug.cgi?product=EGit&rep_platform=All&op_sys=All
Previous Topic:Cannot install EGit 1.1
Next Topic:egit does not save upstream location
Goto Forum:
  


Current Time: Tue Apr 23 06:50:59 GMT 2024

Powered by FUDForum. Page generated in 0.02863 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top