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

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 <<;
QStringList args;
args << "/c" << m_binaryPath <<;
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());
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