forked from qt-creator/qt-creator
Vcs: Use a FilePathAspect for VcsBaseSettings::path
Change-Id: Ic92ef43514f7f4004774ebbd9bb49c026dc735ba Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -161,7 +161,7 @@ FilePath GitSettings::gitExecutable(bool *ok, QString *errorMessage) const
|
||||
if (tryResolve) {
|
||||
resolvedBinPath = binaryPath();
|
||||
if (!resolvedBinPath.isAbsolutePath())
|
||||
resolvedBinPath = resolvedBinPath.searchInPath({path.filePath()}, FilePath::PrependToPath);
|
||||
resolvedBinPath = resolvedBinPath.searchInPath({path()}, FilePath::PrependToPath);
|
||||
tryResolve = false;
|
||||
}
|
||||
|
||||
@@ -170,7 +170,7 @@ FilePath GitSettings::gitExecutable(bool *ok, QString *errorMessage) const
|
||||
*ok = false;
|
||||
if (errorMessage)
|
||||
*errorMessage = Tr::tr("The binary \"%1\" could not be located in the path \"%2\"")
|
||||
.arg(binaryPath.value(), path.value());
|
||||
.arg(binaryPath.value(), path().toUserOutput());
|
||||
}
|
||||
return resolvedBinPath;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user