forked from qt-creator/qt-creator
Git: Use FilePath in findRepositoryForDirectory
Change-Id: Ia711377111d529e14ed864669df83e1b1bb2bfc9 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -1941,9 +1941,9 @@ QStringList GitPluginPrivate::additionalToolsPath() const
|
||||
|
||||
bool GitPluginPrivate::managesDirectory(const FilePath &directory, FilePath *topLevel) const
|
||||
{
|
||||
const QString topLevelFound = m_gitClient.findRepositoryForDirectory(directory.toString());
|
||||
const FilePath topLevelFound = m_gitClient.findRepositoryForDirectory(directory);
|
||||
if (topLevel)
|
||||
*topLevel = FilePath::fromString(topLevelFound);
|
||||
*topLevel = topLevelFound;
|
||||
return !topLevelFound.isEmpty();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user