forked from qt-creator/qt-creator
Ignore unconfigured VCS
Change-Id: I4a63734793debfcb37283257bb7cbf4b1153197f Reviewed-by: Christian Stenger <christian.stenger@digia.com> Reviewed-by: Eike Ziller <eike.ziller@digia.com> Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
committed by
Tobias Hunger
parent
7cf9312a4c
commit
7b5b5b13b4
@@ -226,8 +226,10 @@ IVersionControl* VcsManager::findVersionControlForDirectory(const QString &input
|
||||
|
||||
foreach (IVersionControl * versionControl, versionControls) {
|
||||
QString topLevel;
|
||||
if (versionControl->managesDirectory(directory, &topLevel))
|
||||
if (versionControl->isConfigured()
|
||||
&& versionControl->managesDirectory(directory, &topLevel)) {
|
||||
allThatCanManage.push_back(StringVersionControlPair(topLevel, versionControl));
|
||||
}
|
||||
}
|
||||
|
||||
// To properly find a nested repository (say, git checkout inside SVN),
|
||||
|
Reference in New Issue
Block a user