pre-commit hook does not run check when only submodule is updated
Summary
When only updating a submodule, the cicheck pre-commit is executed but doesn't perform any checks.
To reproduce:
$ cd dpps-aiv-toolkit
$ git checkout <some other commit>
$ cd ..
$ git add dpps-aiv-toolkit
$ pre-commit run -v