this.hints = hints;
if (cmdClass.isAnnotationPresent(RequiresRepository.class)
&& cmdClass.getAnnotation(RequiresRepository.class).value()) {
String workingDir;
Platform platform = getPlatform();
if (platform == null || platform.pwd() == null) {
workingDir = "Couln't determine working directory.";
} else {
workingDir = platform.pwd().getAbsolutePath();
}
if (getGeogig() == null) {
throw new CommandFailedException("Not in a geogig repository: " + workingDir);
}
}