Skip to content

Commit 6271660

Browse files
committed
Rmv submodule.base Repo assert
1 parent a024bdd commit 6271660

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git/objects/submodule/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ def add(cls, repo: 'Repo', name: str, path: PathLike, url: Union[str, None] = No
425425
raise ValueError("A URL was not given and a repository did not exist at %s" % path)
426426
# END check url
427427
mrepo = sm.module()
428-
assert isinstance(mrepo, Repo)
428+
# assert isinstance(mrepo, git.Repo)
429429
urls = [r.url for r in mrepo.remotes]
430430
if not urls:
431431
raise ValueError("Didn't find any remote url in repository at %s" % sm.abspath)

0 commit comments

Comments
 (0)