Skip to main content



      Home
Home » Eclipse Projects » EGit / JGit » [JGit] First time checkout
[JGit] First time checkout [message #580771] Mon, 31 May 2010 03:05 Go to next message
Eclipse UserFriend
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 08:49 Go to previous messageGo to next message
Eclipse UserFriend
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 17:48 Go to previous message
Eclipse UserFriend
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: Fri Jul 04 13:50:26 EDT 2025

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

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

Back to the top