diff options
author | Yobmod <yobmod@gmail.com> | 2021-07-09 14:27:40 +0100 |
---|---|---|
committer | Yobmod <yobmod@gmail.com> | 2021-07-09 14:27:40 +0100 |
commit | a024bddd2a36c67967eda4e9f931c648924f0b19 (patch) | |
tree | 4774210f0c3b1b4c4e32d6a770c497b819d099bf /git/objects/submodule/base.py | |
parent | 3c6deb002c82c852bbd044fc9af2c1ecc9611efb (diff) | |
download | gitpython-a024bddd2a36c67967eda4e9f931c648924f0b19.tar.gz |
Move TraverseNT to global, cos mypy complained on testing
Diffstat (limited to 'git/objects/submodule/base.py')
-rw-r--r-- | git/objects/submodule/base.py | 1 |
1 files changed, 1 insertions, 0 deletions
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) |