Skip to content
Snippets Groups Projects
Commit 98aa0909 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Vcs: Fix cache-checking for non-existing directories


Change-Id: Id314a40372feeddc61de89eae3684d502ea20d02
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
parent b4ac33c7
No related branches found
No related tags found
No related merge requests found
...@@ -207,8 +207,8 @@ IVersionControl* VcsManager::findVersionControlForDirectory(const QString &input ...@@ -207,8 +207,8 @@ IVersionControl* VcsManager::findVersionControlForDirectory(const QString &input
if (inputDirectory.isEmpty()) if (inputDirectory.isEmpty())
return 0; return 0;
// Make sure we a clean absolute path: // Make sure we an absolute path:
const QString directory = QDir(inputDirectory).canonicalPath(); const QString directory = QDir(inputDirectory).absolutePath();
VcsManagerPrivate::VcsInfo *cachedData = d->findInCache(directory); VcsManagerPrivate::VcsInfo *cachedData = d->findInCache(directory);
if (cachedData) { if (cachedData) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment