0

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
Mr.
  • 9,429
  • 13
  • 58
  • 82

0 Answers0