summaryrefslogtreecommitdiff
path: root/git/config.py
diff options
context:
space:
mode:
authorSebastian Thiel <sebastian.thiel@icloud.com>2023-02-16 17:27:50 +0100
committerGitHub <noreply@github.com>2023-02-16 17:27:50 +0100
commit0e5358a7c0d153902eb31f31fa8df9600276a520 (patch)
tree40146438d46d57276d5aa6622570d00cec52b1bf /git/config.py
parent202e31cb4196e74cd190c2644a27b9d5479ba6ed (diff)
parentfc843d31ddb817deb8e5e6732ebe67a5ee61db66 (diff)
downloadgitpython-0e5358a7c0d153902eb31f31fa8df9600276a520.tar.gz
Merge pull request #1555 from Codym48/fix/get_values
Fix get_values() so it correctly loads section names
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: