URIish uri = new URIish("file:///"
+ repository1.getRepository().getDirectory().toString());
CloneOperation clop = new CloneOperation(uri, true, null, workdir2,
"refs/heads/master", "origin", 0);
clop.addPostCloneTask(new ConfigureFetchAfterCloneTask("origin",
"refs/notes/review:refs/notes/review"));
clop.run(null);
Repository clonedRepo = FileRepositoryBuilder.create(new File(workdir2,
Constants.DOT_GIT));
assertTrue(