Skip to content

husky hook does not work #981

Open
@FreePhoenix888

Description

@FreePhoenix888

This part of README has this:

"husky": {
  "hooks": {
    "prepare-commit-msg": "exec < /dev/tty && npx cz --hook || true"
  }
}

But this hook does not work. When I use git commit - I get default behavior

If I put this in .husky/prepare-commit-msg:

#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

exec < /dev/tty && npx cz --hook || true

And run git commit it works but after commitizen I see result commit in nano. How to fix this?
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions