Close write channels of git processes.

..in an attempt to suppress password prompts.
This commit is contained in:
Friedemann Kleint
2009-05-28 12:27:04 +02:00
parent faaab90a15
commit e38250d81f
2 changed files with 2 additions and 0 deletions

View File

@@ -133,6 +133,7 @@ void GitCommand::run()
qDebug() << "GitCommand::run" << j << '/' << count << 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)) {
ok = false;
error += QLatin1String("Error: Git timed out");