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

Reviewed-By: Ossi
This commit is contained in:
Daniel Molkentin
2009-06-02 19:36:47 +02:00
parent 3e085c86af
commit b17fe748bb

View File

@@ -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());