
This commits adds support for updating a formula with changed git submodules with GitDownloadStrategy when the cloned repository is still in the cache. This is done by running git submodule sync --recursive before updating the submodules, so that git can reload the submodule config from the updated .gitmodules file. Fixes Homebrew/homebrew#36395. Closes Homebrew/homebrew#36466. Signed-off-by: Jack Nagel <jacknagel@gmail.com>