commitizen / commitizen/cz-cli
COMMIT_EDITMSG is not updated
- Linguagem predominante
- JavaScript
- Estrelas
- 17.5k
- Forks
- 566
- Merge médio
- 8h 16min
- PRs com merge (30d)
- 1
Descrição
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.
Guia de contribuição
Direção de pesquisa
Comece reproduzindo um commit de dentro de um submódulo Git e rastreie o tratamento de COMMIT_EDITMSG. Compare o caminho com falha submodule/.git/COMMIT_EDITMSG com a localização dos hooks em ../.git/modules/submodule/hooks; considera-se concluído quando o fluxo de commit não tenta mais abrir o caminho inválido e trata a operação sem uma rejeição não tratada.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- git, javascript
- Domínio
- cli
- Tipo de issue
- Bug
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Status de atividade
- Estagnada
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 35/100