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

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.start(m_binaryPath, arguments);
#ifdef Q_OS_WIN
QStringList args;
args << "/c" << m_binaryPath << arguments;
process.start(QLatin1String("cmd.exe"), args);
process.start(m_binaryPath, arguments);
if (!process.waitForFinished()) {
Supports Markdown
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