observing / pre-commit

Automatically installs a git pre-commit script in your git repository which runs your `npm test` on pre-commit
MIT License
1.88k stars 150 forks source link

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

Open guyellis opened 7 years ago

guyellis commented 7 years ago

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.

samsonkolge commented 7 years ago

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

guyellis commented 7 years ago

@samsonkolge No, this is on Cent OS.