observing/pre-commit

"cannot enable tty mode on non tty input" when running in Docker

Opened this issue · 2 comments

If I run git commit ... from the command line which causes a "node script" to spin up a Docker container and mount the volumes in it which subsequently runs the hooks in the container I get the error cannot enable tty mode on non tty input.

Are you trying to run the command on windows (git bash) if yes then try using
$ winpty docker run -it your_container-name bash

@samsonkolge No, this is on Cent OS.