commitizen / commitizen/cz-cli
COMMIT_EDITMSG is not updated
- Langage dominant
- JavaScript
- Étoiles
- 17.5k
- Forks
- 566
- Merge moyen
- 8 h 16 min
- PR mergées (30 j)
- 1
Description
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.
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par reproduire un commit depuis un sous-module Git et suivez le traitement de COMMIT_EDITMSG. Comparez le chemin défaillant submodule/.git/COMMIT_EDITMSG avec l’emplacement des hooks sous ../.git/modules/submodule/hooks ; le travail est terminé lorsque le flux du commit n’essaie plus d’ouvrir le chemin invalide et gère l’opération sans rejet non géré.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- git, javascript
- Domaine
- cli
- Type d'issue
- Bug
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100