forked from qt-creator/qt-creator
Utils: FilePathify Environment::{ap,pre}pendOrSetPath etc
Change-Id: Idfa5ec247337570936b0236cab9d3a5669792ca0 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -143,8 +143,7 @@ FilePath GitSettings::gitExecutable(bool *ok, QString *errorMessage) const
|
||||
FilePath binPath = binaryPath.filePath();
|
||||
if (!binPath.isAbsolutePath()) {
|
||||
Environment env = Environment::systemEnvironment();
|
||||
if (!path.filePath().isEmpty())
|
||||
env.prependOrSetPath(path.filePath().toString());
|
||||
env.prependOrSetPath(path.filePath());
|
||||
binPath = env.searchInPath(binPath.toString());
|
||||
}
|
||||
if (binPath.isEmpty()) {
|
||||
|
||||
Reference in New Issue
Block a user