Update the state of submodules.