forked from qt-creator/qt-creator
ProjectExplorer: Fix FilePath construction for git paths
Change-Id: If29c0afcd41789ded5eccc6e098b3fadb390287d Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -2098,7 +2098,7 @@ void ProjectExplorerPlugin::extensionsInitialized()
|
|||||||
const QStringList rawGitSearchPaths = ICore::settings()->value("Git/Path")
|
const QStringList rawGitSearchPaths = ICore::settings()->value("Git/Path")
|
||||||
.toString().split(':', Qt::SkipEmptyParts);
|
.toString().split(':', Qt::SkipEmptyParts);
|
||||||
const FilePaths gitSearchPaths = Utils::transform(rawGitSearchPaths,
|
const FilePaths gitSearchPaths = Utils::transform(rawGitSearchPaths,
|
||||||
[](const QString &rawPath) { return FilePath::fromString(rawPath); });
|
[](const QString &rawPath) { return FilePath::fromUserInput(rawPath); });
|
||||||
const FilePath fullGitPath = Environment::systemEnvironment()
|
const FilePath fullGitPath = Environment::systemEnvironment()
|
||||||
.searchInPath(gitBinary, gitSearchPaths);
|
.searchInPath(gitBinary, gitSearchPaths);
|
||||||
if (!fullGitPath.isEmpty()) {
|
if (!fullGitPath.isEmpty()) {
|
||||||
|
Reference in New Issue
Block a user