Skip to content
Snippets Groups Projects
Commit 7b5b5b13 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Tobias Hunger
Browse files

Ignore unconfigured VCS


Change-Id: I4a63734793debfcb37283257bb7cbf4b1153197f
Reviewed-by: default avatarChristian Stenger <christian.stenger@digia.com>
Reviewed-by: default avatarEike Ziller <eike.ziller@digia.com>
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
parent 7cf9312a
No related branches found
No related tags found
No related merge requests found
...@@ -226,8 +226,10 @@ IVersionControl* VcsManager::findVersionControlForDirectory(const QString &input ...@@ -226,8 +226,10 @@ IVersionControl* VcsManager::findVersionControlForDirectory(const QString &input
foreach (IVersionControl * versionControl, versionControls) { foreach (IVersionControl * versionControl, versionControls) {
QString topLevel; QString topLevel;
if (versionControl->managesDirectory(directory, &topLevel)) if (versionControl->isConfigured()
&& versionControl->managesDirectory(directory, &topLevel)) {
allThatCanManage.push_back(StringVersionControlPair(topLevel, versionControl)); allThatCanManage.push_back(StringVersionControlPair(topLevel, versionControl));
}
} }
// To properly find a nested repository (say, git checkout inside SVN), // To properly find a nested repository (say, git checkout inside SVN),
......
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