| 7 | } |
| 8 | |
| 9 | GitExecResult GitRequestorProcess::run(const QString &command) |
| 10 | { |
| 11 | auto ret = false; |
| 12 | |
| 13 | // Create temporary file |
| 14 | mTempFile = new QTemporaryFile(this); |
| 15 | |
| 16 | if (mTempFile->open()) // to read the file name |
| 17 | { |
| 18 | setStandardOutputFile(mTempFile->fileName()); |
| 19 | mTempFile->close(); |
| 20 | |
| 21 | ret = execute(command); |
| 22 | } |
| 23 | |
| 24 | return { ret, "" }; |
| 25 | } |
| 26 | |
| 27 | void GitRequestorProcess::onFinished(int, QProcess::ExitStatus) |
| 28 | { |