Commit 64e925d2 authored by Daniel Molkentin's avatar Daniel Molkentin

Fix for recent git version where git.exe became git.cmd.

Run git as a cmd.exe subprocess as a workaround. In the long term
we should look into enabling QProcess to properly handle .bat and
.cmd files.

Reviewed-By: Ossi
parent 6c85e5ec
......@@ -132,7 +132,9 @@ void GitCommand::run()
if (Git::Constants::debug)
qDebug() << "GitCommand::run" << j << '/' << count << m_jobs.at(j).arguments;
process.start(m_binaryPath, m_jobs.at(j).arguments);
QStringList args;
args << "/c" << m_binaryPath << m_jobs.at(j).arguments;
process.start("cmd.exe", args);
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