class GitManager {

    public File getConfigFile(Pipeline pipeline, String version) {
        checkRevision(pipeline, version);
        try {
            Path path = Files.createTempDirectory(getBaseDir().toPath(), "git");
            return checkoutConfigToDirectory(pipeline, getRevisionName(version),
                    path.toFile().getAbsolutePath() + PATH_DELIMITER);
        } catch (IOException | GitClientException e) {
            LOGGER.error(e.getMessage(), e);
            throw new CmdExecutionException(e.getMessage(), e);
        }
    }

}