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:
Jarek Kobus
2022-08-02 17:28:15 +02:00
parent b2f0f78bdc
commit 278d297397
7 changed files with 36 additions and 50 deletions

View File

@@ -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: