Add a check to the CI that checks whether the repository has any git submodules (either directly or of subtrees) and rejects it if so.
In #17398 I accidentally almost added three submodules because they are part of the crc32c
third-party repository, which was subtree’d there. This was only avoided because the gitian build failed.
We do not make use of submodules so there doesn’t need to be any exception.
Useful skills:
- Shell scripting
Want to work on this issue?
The purpose of the good first issue
label is to highlight which issues are suitable for a new contributor without a deep understanding of the codebase.
You do not need to request permission to start working on this. You are encouraged to comment on the issue if you are planning to work on it. This will help other contributors monitor which issues are actively being addressed and is also an effective way to request assistance if and when you need it.
For guidance on contributing, please read CONTRIBUTING.md before opening your pull request.