forked from qt-creator/qt-creator
VcsCommand: Remove one addJob overload
Remove defaultTimeoutS field, as it wasn't broadly used. Change-Id: I0056788b066eb6d682d5ba7acdb01d5dd3568967 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -96,7 +96,6 @@ VcsCommand *VcsBaseClientImpl::createCommand(const FilePath &workingDirectory,
|
||||
JobOutputBindMode mode) const
|
||||
{
|
||||
auto cmd = createVcsCommand(workingDirectory, processEnvironment());
|
||||
cmd->setDefaultTimeoutS(vcsTimeoutS());
|
||||
if (editor)
|
||||
editor->setCommand(cmd);
|
||||
if (mode == VcsWindowOutputBind) {
|
||||
@@ -119,7 +118,7 @@ VcsCommand *VcsBaseClientImpl::execBgCommand(const FilePath &workingDirectory,
|
||||
cmd->addFlags(flags | VcsCommand::SuppressCommandLogging
|
||||
| VcsCommand::SuppressStdErr
|
||||
| VcsCommand::SuppressFailMessage);
|
||||
cmd->addJob({vcsBinary(), args});
|
||||
cmd->addJob({vcsBinary(), args}, vcsTimeoutS());
|
||||
connect(cmd, &VcsCommand::stdOutText, this, outputCallback);
|
||||
cmd->execute();
|
||||
return cmd;
|
||||
|
||||
Reference in New Issue
Block a user