commitizen / commitizen/cz-cli

COMMIT_EDITMSG is not updated

Aperta
#643 1 commento 3 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
17.5k
Fork
566
Merge medio
8h 16m
PR unite (30g)
1

Descrizione

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.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.