def Update(repo: git.Repo, submodule: git.Submodule, recursive=False): """Runs an update appropriate for updating the checkout to the latest available revision. """ submodule.update(recursive, True, True)
def Checkout(repo: git.Repo, submodule: git.Submodule, recursive=False): """Runs an update appropriate for an initial checkout of this submodule. """ submodule.update(recursive, True)