forked from qt-creator/qt-creator
It may come as a total surprise, but Unix doesn't like cmd.exe :-D
Reviewed-By: Ossi
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user