summaryrefslogtreecommitdiff
path: root/git/config.py
diff options
context:
space:
mode:
authorKent Friesen <kfreezen@gmail.com>2023-01-10 11:02:38 -0800
committerKent Friesen <kfreezen@gmail.com>2023-01-10 11:17:02 -0800
commitcfc613a866921dab9228d5c21587e62f30ec6a57 (patch)
tree6afd47458071230f1b35c99fc1198989173e5b06 /git/config.py
parentfbc36f9cefa3a7e150187dabf8758a53062c5b47 (diff)
downloadgitpython-cfc613a866921dab9228d5c21587e62f30ec6a57.tar.gz
get_values eagerly loads sections before return
Diffstat (limited to 'git/config.py')
-rw-r--r--git/config.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/git/config.py b/git/config.py
index 71d7ea68..e05a297a 100644
--- a/git/config.py
+++ b/git/config.py
@@ -796,6 +796,7 @@ class GitConfigParser(cp.RawConfigParser, metaclass=MetaParserBuilder):
:raise TypeError: in case the value could not be understood
Otherwise the exceptions known to the ConfigParser will be raised."""
try:
+ self.sections()
lst = self._sections[section].getall(option)
except Exception:
if default is not None: