@Override
 public void addFile(File file, File contentFile) throws IOException {
   Repository repository = getRepository(file);
   persistence.addFile(file, contentFile);
   Git git = new Git(repository);
   try {
     git.add().addFilepattern(getPath(file, repository)).call();
     commit(git, String.format("FitNesse file %s updated.", file.getName()));
   } catch (GitAPIException e) {
     throw new RuntimeException(e);
   }
 }