forked from qt-creator/qt-creator
VcsBase: More use of settings instead of client when it suffices
Client::vcsBinary() maps directly to Settings::binaryPath() except for git can be replaced by that in non-generic settings. Change-Id: I245659d3c423361e87c92e8995fa3476d798cc7b Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -749,7 +749,7 @@ bool MercurialPluginPrivate::managesFile(const QString &workingDirectory, const
|
||||
|
||||
bool MercurialPluginPrivate::isConfigured() const
|
||||
{
|
||||
const Utils::FilePath binary = m_client.vcsBinary();
|
||||
const Utils::FilePath binary = m_settings.binaryPath();
|
||||
if (binary.isEmpty())
|
||||
return false;
|
||||
QFileInfo fi = binary.toFileInfo();
|
||||
@@ -822,7 +822,7 @@ Core::ShellCommand *MercurialPluginPrivate::createInitialCheckoutCommand(const Q
|
||||
args << QLatin1String("clone") << extraArgs << url << localName;
|
||||
auto command = new VcsBase::VcsCommand(baseDirectory.toString(),
|
||||
m_client.processEnvironment());
|
||||
command->addJob({m_client.vcsBinary(), args}, -1);
|
||||
command->addJob({m_settings.binaryPath(), args}, -1);
|
||||
return command;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user