Closed stefanluptak closed 3 years ago
There is no input when running the hooks, so tty
is not available. I guess something like this could be achieved using an Elixir module.
It's been a while since this issue, so if it's still relevant we can reopen this conversation and I can try to help you out with it.
I am using construction like this in my
pre-commit
hook:If I run the
pre-commit
hook directly from my terminal, it works. If I run it withelixir_git_hooks
configured like this:It raises an exception saying that
.githooks/pre-commit: line 22: /dev/tty: Device not configured
On line 22, is this:
exec </dev/tty
Any idea how I could fix this error?
Thanks a lot. :-)