}
private void cloneRepository(Repository repo, String forkedPluginKey)
{
Git git = new Git(repo);
git.cloneRepository()
.setURI(repo.getDirectory().toURI().toString())
.setDirectory(new File(repositoriesDir, forkedPluginKey))
.setBare(false)
.call();
executor.forKey(forkedPluginKey, SYNC_EVENT, new Operation<Repository, Void>()