commitlint
2018
📓 Lint commit messages
Description
In personal project I occasionally use git submodules to organize subprojects. When I one day combined this practice with the use of commitlint, I discovered that git submodules are not supported. After reporting the issue, I diagnosed the problem and fixed it.
The issue was caused by the fact that submodules don't have their own .git
folder, instead it is a file pointing to the parent repository's .git
folder. commitlint looks for the COMMIT_EDITMSG
file in the .git
folder, so in the case of a submodule it should use the pointer in the .git
file to find the COMMIT_EDITMSG
of the parent repository and obtain the commit message. This change was implemented and accepted in #469.