Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
e38250d8
Commit
e38250d8
authored
May 28, 2009
by
Friedemann Kleint
Browse files
Close write channels of git processes.
..in an attempt to suppress password prompts.
parent
faaab90a
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/plugins/git/gitclient.cpp
View file @
e38250d8
...
...
@@ -547,6 +547,7 @@ bool GitClient::synchronousGit(const QString &workingDirectory,
process
.
setEnvironment
(
environment
.
toStringList
());
process
.
start
(
m_binaryPath
,
arguments
);
process
.
closeWriteChannel
();
if
(
!
process
.
waitForFinished
())
{
if
(
errorText
)
...
...
src/plugins/git/gitcommand.cpp
View file @
e38250d8
...
...
@@ -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"
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment