Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
...@@ -132,7 +132,9 @@ void GitCommand::run() ...@@ -132,7 +132,9 @@ 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;
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()) { 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