Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit » CloneCommand doesn't add the clone to Git Repositories view
CloneCommand doesn't add the clone to Git Repositories view [message #1263743] Tue, 04 March 2014 18:45 Go to next message
Julian Enoch is currently offline Julian EnochFriend
Messages: 3
Registered: January 2014
Junior Member
I am cloning a git repo programmatically using CloneCommand in eclipse Luna (4.4). In the past this used to add the clone to the repositories view, but it doesn't nomore, although the clone is created and configured in the file system.

Did anyone face the same or is aware about this behavior?

Thanks,
Re: CloneCommand doesn't add the clone to Git Repositories view [message #1267350 is a reply to message #1263743] Sat, 08 March 2014 22:23 Go to previous messageGo to next message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 612
Registered: July 2009
Senior Member
Are you calling jgit's or egit's CloneCommand ?
Re: CloneCommand doesn't add the clone to Git Repositories view [message #1268409 is a reply to message #1267350] Mon, 10 March 2014 13:17 Go to previous message
Julian Enoch is currently offline Julian EnochFriend
Messages: 3
Registered: January 2014
Junior Member
I am using jgit's one:

import org.eclipse.jgit.api.CloneCommand;
...
CloneCommand command = Git.cloneRepository();
command.setNoCheckout(true);
command.setURI(...);
command.setRemote(...);
command.setBranchesToClone(Collections.singleton(...));
command.setDirectory(...);
command.setTimeout(60);
command.setProgressMonitor(new ProgressLogWrapper(...));
return command.call();
Previous Topic:synchronize view shows wrong conflicts
Next Topic:Duplication occured
Goto Forum:
  


Current Time: Fri Dec 19 21:07:09 GMT 2014

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

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