Commit submodule state.