Fix optional mapping

This commit is contained in:
René Pfeuffer
2018-09-28 16:09:09 +02:00
parent 4be4a902a3
commit 3dd632888b

View File

@@ -541,7 +541,7 @@ public final class GitUtil
if (logger.isDebugEnabled()) {
logger.debug("use {}:{} as repository head for directory {}",
foundRef.map(GitUtil::getBranch).orElse(null),
foundRef.map(Ref::getObjectId).orElse(null).name(),
foundRef.map(Ref::getObjectId).map(ObjectId::name).orElse(null),
repo.getDirectory());
}
} else {