We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ebf4656 commit 553500aCopy full SHA for 553500a
1 file changed
git/diff.py
@@ -283,7 +283,8 @@ def __init__(self, repo, a_rawpath, b_rawpath, a_blob_id, b_blob_id, a_mode,
283
if repo and a_rawpath:
284
for submodule in repo.submodules:
285
if submodule.path == a_rawpath.decode("utf-8"):
286
- repo = submodule.module()
+ if submodule.module_exists():
287
+ repo = submodule.module()
288
break
289
290
if a_blob_id is None or a_blob_id == self.NULL_HEX_SHA:
0 commit comments