forked from qt-creator/qt-creator
Git: Replace findRepository with VcsManager::findTopLevel
Take advantage of its cache Change-Id: Ibf3b3b59821a92cd4475c6f8d6dd8212983d5c96 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
166c1f51a4
commit
0544f9dd05
@@ -432,7 +432,7 @@ void GerritPlugin::fetch(const QSharedPointer<GerritChange> &change, int mode)
|
||||
QString repository;
|
||||
bool verifiedRepository = false;
|
||||
if (!m_dialog.isNull() && !m_parameters.isNull() && QFile::exists(m_dialog->repositoryPath()))
|
||||
repository = client->findRepositoryForDirectory(m_dialog->repositoryPath());
|
||||
repository = Core::VcsManager::findTopLevelForDirectory(m_dialog->repositoryPath());
|
||||
|
||||
if (!repository.isEmpty()) {
|
||||
// Check if remote from a working dir is the same as remote from patch
|
||||
|
||||
Reference in New Issue
Block a user