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 13:45 Go to next message
Julian Enoch is currently offline Julian Enoch
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 17:23 Go to previous messageGo to next message
Matthias Sohn is currently offline Matthias Sohn
Messages: 548
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 09:17 Go to previous message
Julian Enoch is currently offline Julian Enoch
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: Wed Jul 30 17:22:51 EDT 2014

Powered by FUDForum. Page generated in 0.09152 seconds