commitizen / commitizen/cz-cli

exec < /dev/tty && make an error?

Open
#636 4 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
17.5k
Forks
566
Avg merge
8h 16m
Merged PRs (30d)
1

Description

``` javascript
module.exports = {
"hooks": {
// "prepare-commit-msg": "echo foooooo", // it works
"prepare-commit-msg": "exec < /dev/tty && echo foooooo",
}
}
```

With the config above in `.huskyrc.js`, I will get an error in console:
```
husky > prepare-commit-msg (node v10.11.0)
The system cannot find the path specified.
husky > prepare-commit-msg hook failed (cannot be bypassed with --no-verify due to Git specs)
```

What's the cause?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.