Re: [git-users] jgit checkout problem

2013-12-05 Thread Konstantin Khomoutov
On Thu, 5 Dec 2013 07:13:23 -0800 (PST) Tal Agmon wrote: > I'm trying to use CheckoutCommand the following way: [...] > Can you please advise? I'm sure it would be much better to ask this question on some resource dedicated to JGit or may be even in its bug tracker. JGit is not Git, and this li

[git-users] jgit checkout problem

2013-12-05 Thread Tal Agmon
Hi, I'm trying to use CheckoutCommand the following way: Git git = new Git(repository); CheckoutCommand checkoutCommand = git.checkout(); checkoutCommand.setUpstreamMode(CreateBranchCommand.SetupUpstreamMode.SET_UPSTREAM); checkoutCommand.setStartPoint("origin/" + branchName); checkoutCommand.se