commitizen / commitizen/cz-cli

COMMIT_EDITMSG is not updated

未关闭
#643 1 条评论 3 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
17.5k
派生
566
平均合并
8 小时 16 分钟
30 天内合并 PR
1

描述

Hello guys and thank you for a wonderful package!

I am experiencing some issues though if commiting from within a submodule directory.
```
(node:16959) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: ENOTDIR: not a directory, open '/home/ubuntu/path/to/repository/submodule/.git/COMMIT_EDITMSG' [edited for bug report]
(node:16959) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
```

Nonetheless script is definitely right because hooks for submodules are located under `../.git/modules/submodule/hooks` and therefore `COMMIT_EDITMSG` file would never appear under `submodule/.git/COMMIT_EDITMSG` and `submodule/.git` is file, that's true as well ;)

I cannot give a time to resolve it by myself at the moment but will hopefully provide a solution somehow later as a contributor.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。