GitConfiguration configuration = GitConfiguration.createServerConfiguration(root);
if (!configuration.isProjectDirectoryARepository()) {
new CloneCommand(configuration).run(false);
}
else {
new FetchCommand(configuration).run();
}
LogCommand getLog = new LogCommand(configuration);
Commit head = getLog.head();
if (head == null) {
log.warn("No current version!");