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

fix(sync): explicitly close stdin for child processes #429

Merged
merged 1 commit into from
Jun 26, 2022
Merged

Conversation

arxanas
Copy link
Owner

@arxanas arxanas commented Jun 23, 2022

No description provided.

In some circumstances, `git fetch` will hang because it's waiting on credentials, but this isn't surfaced to the user. To prevent that from happening, close the child process's stdin unless we have something to write to it.

Actually, upon testing this commit, it doesn't seem to work, but it also probably doesn't hurt to check in. We would want to suppress the "askpass" mechanism somehow (see the `GIT_ASKPASS` environment variable).
@arxanas arxanas marked this pull request as ready for review June 26, 2022 21:51
@arxanas arxanas merged commit 24b0c83 into master Jun 26, 2022
@arxanas arxanas deleted the arxanas/sync branch June 26, 2022 22:12
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.

1 participant