Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
...@@ -132,9 +132,13 @@ void GitCommand::run() ...@@ -132,9 +132,13 @@ void GitCommand::run()
if (Git::Constants::debug) if (Git::Constants::debug)
qDebug() << "GitCommand::run" << j << '/' << count << m_jobs.at(j).arguments; qDebug() << "GitCommand::run" << j << '/' << count << m_jobs.at(j).arguments;
#ifdef Q_OS_WIN
QStringList args; QStringList args;
args << "/c" << m_binaryPath << m_jobs.at(j).arguments; 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()) { if(!process.waitForStarted()) {
ok = false; ok = false;
error += QString::fromLatin1("Error: \"%1\" could not be started: %2").arg(m_binaryPath, process.errorString()); error += QString::fromLatin1("Error: \"%1\" could not be started: %2").arg(m_binaryPath, process.errorString());
......
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