Use defined codes and strings.

This commit is contained in:
2025-02-21 12:37:00 +01:00
parent 5d3849dcf3
commit 96e3b606ef
3 changed files with 26 additions and 2 deletions

View File

@@ -50,12 +50,17 @@ GitCommand::GitCommand()
}
bool GitCommand::exec(QStringList const &options, int start_timeout, int finish_timeout) {
bool ret = false;
if (GitCommand::initEnv) {
Command cmd(QString("git"), options, m_workingDirectory,
start_timeout, finish_timeout);
return cmd.exec();
ret = cmd.exec();
//qCritical() << __func__ << ":" << __LINE__ << cmd.command()
// << "," << cmd.args()
// << ", result" << cmd.commandResult();
m_commandResult = cmd.commandResult();
}
return 0;
return ret;
}
bool GitCommand::check(int start_timeout, int finish_timeout) {