Commit e38250d8 authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

Close write channels of git processes.

..in an attempt to suppress password prompts.
parent faaab90a
...@@ -547,6 +547,7 @@ bool GitClient::synchronousGit(const QString &workingDirectory, ...@@ -547,6 +547,7 @@ bool GitClient::synchronousGit(const QString &workingDirectory,
process.setEnvironment(environment.toStringList()); process.setEnvironment(environment.toStringList());
process.start(m_binaryPath, arguments); process.start(m_binaryPath, arguments);
process.closeWriteChannel();
if (!process.waitForFinished()) { if (!process.waitForFinished()) {
if (errorText) if (errorText)
......
...@@ -133,6 +133,7 @@ void GitCommand::run() ...@@ -133,6 +133,7 @@ void GitCommand::run()
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); process.start(m_binaryPath, m_jobs.at(j).arguments);
process.closeWriteChannel();
if (!process.waitForFinished(m_jobs.at(j).timeout * 1000)) { if (!process.waitForFinished(m_jobs.at(j).timeout * 1000)) {
ok = false; ok = false;
error += QLatin1String("Error: Git timed out"); error += QLatin1String("Error: Git timed out");
......
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