repository: repo_submodule_init to take a submodule struct