Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » [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 Friend
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 Friend
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 SohnFriend
Messages: 1268
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: Tue Mar 19 03:12:25 GMT 2024

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

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

Back to the top