Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment