submodule_update.py
import git repo = git.Repo(PATH_TO_REPO) for sub in repo.submodules: sub.update(recursive=True, init=True, to_latest_revision=True,progress=None, dry_run=False)
I haven't tested it, but it's probably like this.
Recommended Posts