summaryrefslogtreecommitdiff
path: root/git/objects
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2017-09-28 15:13:15 +0200
committerGitHub <noreply@github.com>2017-09-28 15:13:15 +0200
commita56136f9cb48a17ae15b59ae0f3f99d9303b1cb1 (patch)
treeecb856bea6ed63e9c2baf8365a4e0a9030b0b3a3 /git/objects
parent90dc03da3ebe1daafd7f39d1255565b5c07757cb (diff)
parent2af601d5800a39ab04e9fe6cf22ef7b917ab5d67 (diff)
downloadgitpython-a56136f9cb48a17ae15b59ae0f3f99d9303b1cb1.tar.gz
Merge branch 'master' into adding_setup_for_git_executable
Diffstat (limited to 'git/objects')
-rw-r--r--git/objects/submodule/base.py10
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