InfoScmResult result = null;
ScmLogger logger = new DefaultLog();
GitCommand command = new GitExeScmProvider().getInfoCommand();
command.setLogger(logger);
try {
ScmProviderRepository repository = new GitScmProviderRepository(basedir.getAbsolutePath());
ScmFileSet fileSet = new ScmFileSet(basedir);
CommandParameters parameters = new CommandParameters();
result = (InfoScmResult) command.execute(repository, fileSet, parameters);
} catch (ScmException e) {
if (logger.isErrorEnabled()) {
logger.error(e.getMessage());
}
}