standard streams in git hook when running commitizen

51 Views Asked by At

i have a prepare-commit-msg git hook that performs runs interactively. it works well when git commit is executed, but when committing using commitizen the prepare-commit-msg git hook does not show any output and thus cannot be used interactively.

how can i make prepare-commit-msg to act the same when it runs with and without commitizen?

$ cat .git/hooks/prepare-commit-msg
#!/bin/sh
read -rep "what is your input: " -i "foo" input
0

There are 0 best solutions below