in src/main/java/com/ericsson/gerrit/plugins/gcconductor/command/AddToQueue.java [83:102]
private Path resolvePath() throws UnloggedFailure {
if (!(gitRepositoryManager instanceof LocalDiskRepositoryManager)) {
throw die("Unable to resolve path to " + repository);
}
String projectName = extractFrom(repository);
Project.NameKey nameKey = Project.nameKey(projectName);
if (projectCache.get(nameKey) == null) {
throw die(String.format("Repository %s not found", repository));
}
LocalDiskRepositoryManager localDiskRepositoryManager =
(LocalDiskRepositoryManager) gitRepositoryManager;
try {
return localDiskRepositoryManager
.getBasePath(nameKey)
.resolve(projectName.concat(Constants.DOT_GIT_EXT))
.toRealPath();
} catch (IOException e) {
throw die(e);
}
}