Commit b17fe748 authored by Daniel Molkentin's avatar Daniel Molkentin
Browse files

It may come as a total surprise, but Unix doesn't like cmd.exe :-D

Reviewed-By: Ossi
parent 3e085c86
......@@ -132,9 +132,13 @@ void GitCommand::run()
if (Git::Constants::debug)
qDebug() << "GitCommand::run" << j << '/' << count << m_jobs.at(j).arguments;
#ifdef Q_OS_WIN
QStringList args;
args << "/c" << m_binaryPath << m_jobs.at(j).arguments;
process.start("cmd.exe", args);
process.start(QLatin1String("cmd.exe"), args);
#else
process.start(m_binaryPath, m_jobs.at(j).arguments);
#endif
if(!process.waitForStarted()) {
ok = false;
error += QString::fromLatin1("Error: \"%1\" could not be started: %2").arg(m_binaryPath, process.errorString());
......
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