Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit » [JGit] First time checkout
[JGit] First time checkout [message #580771] Mon, 31 May 2010 07:05 Go to next message
Andrey  is currently offline Andrey
Messages: 10
Registered: May 2010
Junior Member
Hi,

Trying to discover the ability of checkout files from remote repository to local folder using JGit.

I got stuck after repository creation.

Repository repo = new Repository(new File("C:\\git\\new"));
RepositoryConfig config = repo.getConfig();
config.setString("remote", "origin", "url", "http://www.kernel.org/pub/scm/git/git.git");
repo.create();


My understanding is I should somehow get a Tree object but all attempts failed.

Any examples appriciated.

Thanks.
Re: [JGit] First time checkout [message #580793 is a reply to message #580771] Mon, 31 May 2010 12:49 Go to previous messageGo to next message
Andrey  is currently offline Andrey
Messages: 10
Registered: May 2010
Junior Member
Resolved using EGit code (org.eclipse.egit.core.op.CloneOperation).
Re: [JGit] First time checkout [message #581195 is a reply to message #580793] Fri, 04 June 2010 21:48 Go to previous message
Matthias Sohn is currently offline Matthias Sohn
Messages: 588
Registered: July 2009
Senior Member
We are working on new CheckoutCommand in the new JGit porcelain API. This will help to make this easier.
Previous Topic:NPE when pasting github URL in push wizard
Next Topic:Not possible to vote on EGit bugs?
Goto Forum:
  


Current Time: Thu Oct 23 05:15:41 GMT 2014

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

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