Git: Use FilePath in findRepositoryForDirectory

Change-Id: Ia711377111d529e14ed864669df83e1b1bb2bfc9
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
hjk
2021-08-02 13:57:13 +02:00
parent ff57cb548d
commit b72582c050
3 changed files with 10 additions and 10 deletions

View File

@@ -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();
}