assertProjectExistence(PROJ1, true);
refreshAndWait();
assertHasRepo(repositoryFile);
Repository repo = lookupRepository(repositoryFile);
SubmoduleAddCommand command = new SubmoduleAddCommand(repo);
String path = "sub";
command.setPath(path);
String uri = new URIish(repo.getDirectory().toURI().toString())
.toString();
command.setURI(uri);
Repository subRepo = command.call();
assertNotNull(subRepo);
subRepo.close();
String newUri = "git://server/repo.git";
File modulesFile = new File(repo.getWorkTree(),