1 | #include "GitSyncProcess.h" |
---|---|
2 | |
3 | #include <QTemporaryFile> |
4 | #include <QTextStream> |
5 | |
6 | GitSyncProcess::GitSyncProcess(const QString &workingDir) |
7 | : AGitProcess(workingDir) |
8 | { |
9 | } |
10 | |
11 | GitExecResult GitSyncProcess::run(const QString &command) |
12 | { |
13 | const auto processStarted = execute(command); |
14 | |
15 | if (processStarted) |
16 | waitForFinished(10000); |
17 | |
18 | close(); |
19 | |
20 | return { !mRealError, mRunOutput }; |
21 | } |
22 |