Commit 5a6c6369 authored by Daniel Molkentin's avatar Daniel Molkentin

Run git on windows properly when git is called synchronously.

Reviewed-By: Friedemann Kleint
parent a778626e
......@@ -546,7 +546,13 @@ bool GitClient::synchronousGit(const QString &workingDirectory,
environment.set(QLatin1String("PATH"), m_settings.path);
process.setEnvironment(environment.toStringList());
process.start(m_binaryPath, arguments);
#ifdef Q_OS_WIN
QStringList args;
args << "/c" << m_binaryPath << arguments;
process.start(QLatin1String("cmd.exe"), args);
#else
process.start(m_binaryPath, arguments);
#endif
process.closeWriteChannel();
if (!process.waitForFinished()) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment