forked from qt-creator/qt-creator
Utils: Use CommandLine in ShellCommand
... and adapt users. Change-Id: I218523ffe34720d5fe199aa0ca6892a8dc2985fc Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -77,14 +77,12 @@ const QProcessEnvironment VcsCommand::processEnvironment() const
|
||||
return env;
|
||||
}
|
||||
|
||||
SynchronousProcessResponse VcsCommand::runCommand(const FilePath &binary,
|
||||
const QStringList &arguments, int timeoutS,
|
||||
const QString &workingDirectory,
|
||||
const ExitCodeInterpreter &interpreter)
|
||||
SynchronousProcessResponse VcsCommand::runCommand(const CommandLine &command, int timeoutS,
|
||||
const QString &workingDirectory,
|
||||
const ExitCodeInterpreter &interpreter)
|
||||
{
|
||||
SynchronousProcessResponse response
|
||||
= Core::ShellCommand::runCommand(binary, arguments, timeoutS, workingDirectory,
|
||||
interpreter);
|
||||
= Core::ShellCommand::runCommand(command, timeoutS, workingDirectory, interpreter);
|
||||
emitRepositoryChanged(workingDirectory);
|
||||
return response;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user