diff --git a/plugins/changeReminder/src/com/jetbrains/changeReminder/repository/FilesHistoryProvider.kt b/plugins/changeReminder/src/com/jetbrains/changeReminder/repository/FilesHistoryProvider.kt index 9f9862e553ff..4882f28bacbc 100644 --- a/plugins/changeReminder/src/com/jetbrains/changeReminder/repository/FilesHistoryProvider.kt +++ b/plugins/changeReminder/src/com/jetbrains/changeReminder/repository/FilesHistoryProvider.kt @@ -20,7 +20,8 @@ internal class FilesHistoryProvider(private val project: Project, private val ro private fun getCommitsData(commits: Collection): Map { val hashes = mutableMapOf() for (commit in commits) { - val hash = dataGetter.logStorage.getCommitId(commit)?.hash?.asString() ?: continue + val commitId = dataGetter.logStorage.getCommitId(commit) ?: continue + val hash = commitId.takeIf { commitId.root == root }?.hash?.asString() ?: continue hashes[hash] = commit }