diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2017-09-28 15:17:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-28 15:17:25 +0200 |
commit | 58998fb2dd6a1cad5faffdc36ae536ee6b04e3d2 (patch) | |
tree | 4f5c342b1c20b23a5bc73eb74855c4bb81f2c197 /git/objects/submodule/base.py | |
parent | 251128d41cdf39a49468ed5d997cc1640339ccbc (diff) | |
parent | 2af601d5800a39ab04e9fe6cf22ef7b917ab5d67 (diff) | |
download | gitpython-58998fb2dd6a1cad5faffdc36ae536ee6b04e3d2.tar.gz |
Merge branch 'master' into master
Diffstat (limited to 'git/objects/submodule/base.py')
-rw-r--r-- | git/objects/submodule/base.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/git/objects/submodule/base.py b/git/objects/submodule/base.py index e3912d88..a6b4caed 100644 --- a/git/objects/submodule/base.py +++ b/git/objects/submodule/base.py @@ -123,12 +123,12 @@ class Submodule(IndexObject, Iterable, Traversable): reader = self.config_reader() # default submodule values try: - self.path = reader.get_value('path') + self.path = reader.get('path') except cp.NoSectionError: raise ValueError("This submodule instance does not exist anymore in '%s' file" % osp.join(self.repo.working_tree_dir, '.gitmodules')) # end - self._url = reader.get_value('url') + self._url = reader.get('url') # git-python extension values - optional self._branch_path = reader.get_value(self.k_head_option, git.Head.to_full_path(self.k_head_default)) elif attr == '_name': @@ -1168,11 +1168,11 @@ class Submodule(IndexObject, Iterable, Traversable): for sms in parser.sections(): n = sm_name(sms) - p = parser.get_value(sms, 'path') - u = parser.get_value(sms, 'url') + p = parser.get(sms, 'path') + u = parser.get(sms, 'url') b = cls.k_head_default if parser.has_option(sms, cls.k_head_option): - b = str(parser.get_value(sms, cls.k_head_option)) + b = str(parser.get(sms, cls.k_head_option)) # END handle optional information # get the binsha |