forked from qt-creator/qt-creator
Vcs: Simplify VcsCommand::runCommand interface
The timeout and exit code interpreter properties are already accessible via the SynchronousProcess parameter. Change-Id: I1ba9c768a781009df65b5070a1d017c41d7e2663 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -1447,11 +1447,12 @@ CvsResponse CvsPluginPrivate::runCvs(const QString &workingDirectory,
|
||||
}
|
||||
// Run, connect stderr to the output window
|
||||
SynchronousProcess proc;
|
||||
proc.setTimeoutS(timeOutS);
|
||||
|
||||
VcsCommand command(workingDirectory, Environment::systemEnvironment());
|
||||
command.addFlags(flags);
|
||||
command.setCodec(outputCodec);
|
||||
command.runCommand(proc, {executable, m_settings.addOptions(arguments)}, timeOutS);
|
||||
command.runCommand(proc, {executable, m_settings.addOptions(arguments)});
|
||||
|
||||
response.result = CvsResponse::OtherError;
|
||||
response.stdErr = proc.stdErr();
|
||||
|
||||
Reference in New Issue
Block a user