[vcs][log] Fixed rename detection for file history.

Avoid stopping the traversal of renames when one branch returns no commits.

GitOrigin-RevId: 20ac1952ca9c4f3d8f1157db1bbe736b64e50142
This commit is contained in:
Denis Zaichenko
2024-06-27 12:14:20 +02:00
committed by intellij-monorepo-bot
parent 566855921d
commit 09c529d0c4

View File

@@ -75,7 +75,7 @@ class GitFileHistory internal constructor(private val project: Project,
while (starts.isNotEmpty()) {
val (startRevisions, startPath) = starts.removeFirst()
val lastCommits = runGitLog(logParser, startPath, visitedCommits, consumer, startRevisions + parameters.toList())
if (lastCommits.isEmpty()) return
if (lastCommits.isEmpty()) continue
for (lastCommit in lastCommits) {
val parents = getParentsAndPathsIfRename(lastCommit, startPath)