Cannot trigger post-commit git hook on git submodule
问题 We use a git module with several submodules. In order to make it more convenient for daily use, I wanted to have a post-commit hook which automatically adds the submodule to the git index in the main/super/root git repo/clone/module such as git add mychangedsubmodulename so as to prepare a commit ready to update the submodule's commit reference in the main repo and probably more ideas to come. The .git folder is located inside the main module root folder and seems to contain as well the