Commit submodule states.