forked from qt-creator/qt-creator
VcsCommand: Simplify public runCommand()
Get rid of unused workingDirectory (default working directory will be used) and exitCodeInterpreter. Simplify internals a bit. Change-Id: I2a7547e5a594dd7a21f390daeb06778656e9e971 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -201,7 +201,7 @@ public:
|
||||
QObject::connect(m_command.get(),
|
||||
&VcsCommand::stdOutText,
|
||||
[this, &fi](const QString &text) { read(fi, text); });
|
||||
const CommandResult result = m_command->runCommand({m_vcsBinary, arguments}, {}, 0);
|
||||
const CommandResult result = m_command->runCommand({m_vcsBinary, arguments}, 0);
|
||||
switch (result.result()) {
|
||||
case ProcessResult::TerminatedAbnormally:
|
||||
case ProcessResult::StartFailed:
|
||||
|
||||
Reference in New Issue
Block a user