ExternalProject: Fix git submodule recursion on update
In !3923 (merged) we implemented the feature in the clone script written by _ep_write_gitclone_script
but not in the update script written by _ep_write_gitupdate_script
. Implement the latter by factoring out a common helper to use in both places.
I think that unfortunately none of the existing tests for the update step of ExternalProject_Add cover for testing the update step with submodules, and that this was a problem before my initial contribution.
Fixes: #20335 (closed)
Backport: release
Topic-rename: ExternalProject-submodules-recurse
Edited by Brad King