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 <<;
#ifdef Q_OS_WIN
QStringList args;
args << "/c" << m_binaryPath <<;
process.start("cmd.exe", args);
process.start(QLatin1String("cmd.exe"), args);
if(!process.waitForStarted()) {
ok = false;
error += QString::fromLatin1("Error: \"%1\" could not be started: %2").arg(m_binaryPath, process.errorString());
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