From cfc613a866921dab9228d5c21587e62f30ec6a57 Mon Sep 17 00:00:00 2001 From: Kent Friesen Date: Tue, 10 Jan 2023 11:02:38 -0800 Subject: get_values eagerly loads sections before return --- git/config.py | 1 + 1 file changed, 1 insertion(+) (limited to 'git/config.py') 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: -- cgit v1.2.1