All Downloads are FREE. Search and download functionalities are using the official Maven repository.

fitnesse.wiki.fs.GitVersionsControllerFixture Maven / Gradle / Ivy

There is a newer version: 1.2.0
Show newest version
package fitnesse.wiki.fs;

import java.io.File;

import org.eclipse.jgit.api.InitCommand;
import org.eclipse.jgit.api.errors.GitAPIException;
import util.FileUtil;

public class GitVersionsControllerFixture {
    public boolean initialiseGitRepository() throws GitAPIException {
        FileUtil.createDir(VersionsControllerFixture.TEST_DIR);
        new InitCommand()
                .setDirectory(new File(VersionsControllerFixture.TEST_DIR))
                .setBare(false)
                .call();
        return true;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy