VcsManager: Fix detection of top level

Amends 42377c21e4.

Fixes: QTCREATORBUG-28253
Change-Id: Ia10b88790ad02e9be4ff3c84b67c36239c3adf7d
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Orgad Shaneh
2022-10-05 23:13:50 +03:00
committed by Orgad Shaneh
parent 42377c21e4
commit 1748c6e80b

View File

@@ -191,7 +191,7 @@ IVersionControl* VcsManager::findVersionControlForDirectory(const FilePath &inpu
} }
// Make sure we an absolute path: // Make sure we an absolute path:
const FilePath directory = fixedDir(inputDirectory.absolutePath()); const FilePath directory = fixedDir(inputDirectory.absoluteFilePath());
auto cachedData = d->findInCache(directory); auto cachedData = d->findInCache(directory);
if (cachedData) { if (cachedData) {
if (topLevelDirectory) if (topLevelDirectory)