diff options
author | Yobmod <yobmod@gmail.com> | 2021-07-01 10:35:11 +0100 |
---|---|---|
committer | Yobmod <yobmod@gmail.com> | 2021-07-01 10:35:11 +0100 |
commit | 02b8ef0f163ca353e27f6b4a8c2120444739fde5 (patch) | |
tree | 0c8bad344c8111c0081ba70ec2688318abd795dd /git/objects/submodule/base.py | |
parent | 8fd5414697724feff782e952a42ca5d9651418bc (diff) | |
download | gitpython-02b8ef0f163ca353e27f6b4a8c2120444739fde5.tar.gz |
Add missed types to Commit, uncomment to_native_path_linux()
Diffstat (limited to 'git/objects/submodule/base.py')
-rw-r--r-- | git/objects/submodule/base.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/git/objects/submodule/base.py b/git/objects/submodule/base.py index 9b6ef6eb..a15034df 100644 --- a/git/objects/submodule/base.py +++ b/git/objects/submodule/base.py @@ -380,8 +380,8 @@ class Submodule(IndexObject, TraversableIterableObj): # assure we never put backslashes into the url, as some operating systems # like it ... - # if url is not None: - # url = to_native_path_linux(url) to_native_path_linux does nothing?? + if url is not None: + url = to_native_path_linux(url) # END assure url correctness # INSTANTIATE INTERMEDIATE SM @@ -993,7 +993,7 @@ class Submodule(IndexObject, TraversableIterableObj): # If check is False, we might see a parent-commit that doesn't even contain the submodule anymore. # in that case, mark our sha as being NULL try: - self.binsha = pctree[self.path].binsha + self.binsha = pctree[str(self.path)].binsha except KeyError: self.binsha = self.NULL_BIN_SHA # end |