summaryrefslogtreecommitdiff
path: root/git/objects/submodule/base.py
diff options
context:
space:
mode:
Diffstat (limited to 'git/objects/submodule/base.py')
-rw-r--r--git/objects/submodule/base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/git/objects/submodule/base.py b/git/objects/submodule/base.py
index 514fcfea..ca408338 100644
--- a/git/objects/submodule/base.py
+++ b/git/objects/submodule/base.py
@@ -142,7 +142,7 @@ class Submodule(IndexObject, TraversableIterableObj):
reader: SectionConstraint = self.config_reader()
# default submodule values
try:
- self.path = reader.get('path')
+ self.path: PathLike = reader.get('path')
except cp.NoSectionError as e:
if self.repo.working_tree_dir is not None:
raise ValueError("This submodule instance does not exist anymore in '%s' file"