-
Notifications
You must be signed in to change notification settings - Fork 221
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
Lefthook swallows STDERR for prepare-commit-msg #344
Comments
Hey! Yes, there is a "hack" - lefthook uses To enable output anyway I can add a special ENV handling, like |
Hi @mrexox, yes that sounds like it might. Let me give it a try and I'll let you know if this works well. Thanks for the quick reply! |
@mrexox hmm, setting In my prepare-commit-msg:
scripts:
"git-pair-commit-message.sh":
runner: bash And, in The way I am setting the environment variable is like so: LEFTHOOK_VERBOSE=true git commit Is this the correct way to do so? I have also tried |
Hey! This feature is not implemented yet :) But I am on my way to release it with 1.1.4 today! |
Oh sorry, I misunderstood. But that's fast! Thanks! |
Please, tell if that works for you! Lefthook v1.1.4 is now available with |
yes, it works! thank you :) |
I have a
prepare-commit-msg
script that prints to STDERR and exits with a failure code when certain conditions are not met. However, lefthook refuses to display any output, and instead only propagates the exit code, but all output (STDERR or STDOUT) are silenced. I do not have anyskip_output
configured orLEFTHOOK_QUIET
set.How can I get errors from the script to print to the console?
The text was updated successfully, but these errors were encountered: