Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reorder Git config list process exit wait in diagnose command #804

Merged
merged 1 commit into from
Jul 25, 2022

Conversation

mjcheetham
Copy link
Collaborator

@mjcheetham mjcheetham commented Jul 25, 2022

Do not wait for the Git process to exit until we start reading from the stdout stream, to prevent a deadlock. This is what we do in the product code too.

Fixes #795

Copy link
Collaborator

@dscho dscho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Technically, we await Git exit, still, but only after reading the output.

@mjcheetham
Copy link
Collaborator Author

Technically, we await Git exit, still, but only after reading the output.

Sorry; clumsy wording! Reworded description (and commit on next push).

Do not wait for the Git process to exit until we start reading from
the stdout stream, to prevent a deadlock. This is what we do in the
product code too.
@mjcheetham mjcheetham changed the title Don't await Git exit on config list for diagnose command Reorder Git config list process exit wait in diagnose command Jul 25, 2022
@mjcheetham mjcheetham merged commit 77f7922 into git-ecosystem:main Jul 25, 2022
@mjcheetham mjcheetham deleted the diagnose-hang branch July 26, 2022 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"git-credential-manager-core.exe diagnose" hangs when "git config --list" output is long
2 participants