save for weekend
This commit is contained in:
parent
f1aad81a0c
commit
f67b4bfa6f
@ -53,12 +53,12 @@ QVector<QPair<QString, QString>> Utils::installedJsonFiles(Worker const *worker,
|
||||
// connect(&p, SIGNAL(finished(int,QProcess::ExitStatus)), , SLOT(finished(int,QProcess::ExitStatus)));
|
||||
|
||||
QStringList params;
|
||||
params << "-c" << "git log -n 1 --pretty=format:%H -- " << fileList[i];
|
||||
params << "log" << "-n" << "1" << "--pretty=format:%H" << "--" << fileList[i];
|
||||
|
||||
//QObject::connect(&p, SIGNAL(readyReadStandardOutput()),
|
||||
// worker, SLOT(Worker::readyReadStandardOutput()), Qt::DirectConnection);
|
||||
|
||||
p.start("bash", params);
|
||||
p.start("git", params);
|
||||
p.waitForReadyRead();
|
||||
p.write("exit");
|
||||
p.waitForFinished();
|
||||
@ -107,12 +107,12 @@ QVector<QPair<QString, QString>> Utils::installedTariffFiles(Worker const *worke
|
||||
|
||||
QProcess p;
|
||||
QStringList params;
|
||||
params << "-c" << "git log -n 1 --pretty=format:%H -- " << fileList[i];
|
||||
params << "log" << "-n" << "1" << "--pretty=format:%H" << "--" << fileList[i];
|
||||
|
||||
//QObject::connect(&p, SIGNAL(readyReadStandardOutput()),
|
||||
// worker, SLOT(Worker::readyReadStandardOutput()), Qt::DirectConnection);
|
||||
|
||||
p.start("bash", params);
|
||||
p.start("git", params);
|
||||
p.waitForReadyRead();
|
||||
p.write("exit");
|
||||
p.waitForFinished();
|
||||
|
Loading…
x
Reference in New Issue
Block a user