commitizen / commitizen/cz-cli
exec < /dev/tty && make an error?
未关闭
- 主要语言
- JavaScript
- 星标
- 17.5k
- 派生
- 566
- 平均合并
- 8 小时 16 分钟
- 30 天内合并 PR
- 1
描述
``` 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?
贡献指南
调研方向
从 .huskyrc.js 和 prepare-commit-msg hook 命令开始,然后在报告的 Node v10.11.0 环境中,于 CLI 工作流内重现 hook 调用。将其与正常工作的 echo-only hook 进行比较,并确定控制台错误表明了什么。完成标准是记录原因,以及调查所确定的任何受支持的配置或行为。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript, node.js
- 领域
- cli, tooling
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100