Use defined codes and strings.
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user