Why does manually invoking lefthook run do nothing until the user presses enter?
#1060
Unanswered
SirzBenjie
asked this question in
Q&A
Replies: 1 comment 2 replies
-
|
This is because of git-lfs post-checkout hook which runs implicitly. You can have a workaround with skip_lfs: true
post-checkout:
…I will investigate why it freezes |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am using lefthook and I am trying to figure out how to avoid forcing the user to press "enter" before it actually runs the hook.
For example, with this minimal
lefthook.ymlfile:When I invoke lefthook from the command line, via
lefthook run post-checkout, as an example, after sending the command, the terminal just sits there doing nothing until I press enter a second time.This means that I can't easily use the command in scripts without forcing a newline to be sent via stdin or something.
This happens even if I pass the
--no-ttyflag tolefthook run.Why does this happen, and how do I avoid this?
Beta Was this translation helpful? Give feedback.
All reactions