@Override
public void delete(FileVersion... files) {
Repository repository = getRepository(files[0].getFile());
Git git = new Git(repository);
try {
RmCommand remover = git.rm();
for (FileVersion fileVersion : files) {
remover.addFilepattern(getPath(fileVersion.getFile(), repository));
}
remover.call();
commit(git, String.format("[FitNesse] Deleted files: %s.", formatFileVersions(files)), files[0].getAuthor());
} catch (Exception e) {
throw new RuntimeException(e);
}
persistence.delete(files);