diff options
author | Kent Friesen <kfreezen@gmail.com> | 2023-01-10 11:02:38 -0800 |
---|---|---|
committer | Kent Friesen <kfreezen@gmail.com> | 2023-01-10 11:17:02 -0800 |
commit | cfc613a866921dab9228d5c21587e62f30ec6a57 (patch) | |
tree | 6afd47458071230f1b35c99fc1198989173e5b06 /git/config.py | |
parent | fbc36f9cefa3a7e150187dabf8758a53062c5b47 (diff) | |
download | gitpython-cfc613a866921dab9228d5c21587e62f30ec6a57.tar.gz |
get_values eagerly loads sections before return
Diffstat (limited to 'git/config.py')
-rw-r--r-- | git/config.py | 1 |
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: |