Fix rtd-verify.sh to better validate submodules
[releng/global-jjb.git] / releasenotes / notes / rtd-verify-fix-606efc9b6387b494.yaml
1 ---
2 fixes:
3   - |
4     Fix rtd-verify.sh to better validate submodules. rtd-verify.sh was using
5     "git submodule" commands to validate submodules, but Jenkins reads the
6     .gitmodules file and executes a "git config" command for each submodule.
7     Because of this, if a bad submodule was added to .gitmodules, it would pass
8     verify but cause failures on subsequent builds after it was merged.
9
10     This change closes that loophole by reading the .gitmodules file, and
11     then running through the same "git config" command for each submodule
12     that Jenkins runs when pulling in the main branch.