save for weekend

This commit is contained in:
Gerhard Hoffmann 2025-01-10 14:43:14 +01:00
parent f1aad81a0c
commit f67b4bfa6f

View File

@ -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();