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: use empty stdin by default #590

Merged
merged 3 commits into from
Nov 30, 2023

Conversation

mrexox
Copy link
Member

@mrexox mrexox commented Nov 30, 2023

Closes #588

🔧 Summary

Right now commands that don't use STDIN still receive it, and lefthook copies STDIN from the TTY to those commands. This is not correct. This PRs enables STDIN forwarding only when an option is specified (interactive or use_stdin)

@mrexox mrexox marked this pull request as ready for review November 30, 2023 15:29
@mrexox mrexox merged commit 5703093 into evilmartians:master Nov 30, 2023
14 of 17 checks passed
@mrexox mrexox deleted the fix/use-empty-stdin-by-default branch November 30, 2023 15:35
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.

lefthook can swallow stdin from user typing at the terminal unexpectedly
1 participant