From a024bddd2a36c67967eda4e9f931c648924f0b19 Mon Sep 17 00:00:00 2001 From: Yobmod Date: Fri, 9 Jul 2021 14:27:40 +0100 Subject: Move TraverseNT to global, cos mypy complained on testing --- git/objects/submodule/base.py | 1 + 1 file changed, 1 insertion(+) (limited to 'git/objects/submodule') diff --git a/git/objects/submodule/base.py b/git/objects/submodule/base.py index 5539069c..f366e44c 100644 --- a/git/objects/submodule/base.py +++ b/git/objects/submodule/base.py @@ -425,6 +425,7 @@ class Submodule(IndexObject, TraversableIterableObj): raise ValueError("A URL was not given and a repository did not exist at %s" % path) # END check url mrepo = sm.module() + assert isinstance(mrepo, Repo) urls = [r.url for r in mrepo.remotes] if not urls: raise ValueError("Didn't find any remote url in repository at %s" % sm.abspath) -- cgit v1.2.1