evilmartians / lefthook

Fast and powerful Git hooks manager for any type of projects.
MIT License
4.66k stars 211 forks source link

fix: enable interactive scripts #720

Closed mrexox closed 3 months ago

mrexox commented 3 months ago

Closes https://github.com/evilmartians/lefthook/discussions/709

:wrench: Summary

tty.Open does not work with interactive bash scripts. I am about to dig into this issue but changing this to os.Open("/dev/tty") since it fixes the issue.