In fixing T399853 we rearranged steps of checkout.
In doing so, we created a different bug. If you don't specify a patch for a submodule, then the submodule will now checkout the HEAD branch rather than the revision of the submodule requested by the parent repo.