From 87a103d8c28b496ead8b4dd8215b103414f8b7f8 Mon Sep 17 00:00:00 2001 From: Ben Thayer Date: Thu, 24 Oct 2019 13:37:58 -0500 Subject: Filtered out "repository" more explicitly --- git/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'git') diff --git a/git/config.py b/git/config.py index efb4c895..762069c7 100644 --- a/git/config.py +++ b/git/config.py @@ -281,7 +281,7 @@ class GitConfigParser(with_metaclass(MetaParserBuilder, cp.RawConfigParser, obje else: if config_level is None: if read_only: - self._file_or_files = [get_config_path(f) for f in CONFIG_LEVELS[:-1]] + self._file_or_files = [get_config_path(f) for f in CONFIG_LEVELS if f != 'repository'] else: raise ValueError("No configuration level or configuration files specified") else: -- cgit v1.2.1