Skip to content

Commit 87a103d

Browse files
benthayerByron
authored andcommitted
Filtered out "repository" more explicitly
1 parent 05b5ced commit 87a103d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: git/config.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ def __init__(self, file_or_files=None, read_only=True, merge_includes=True, conf
281281
else:
282282
if config_level is None:
283283
if read_only:
284-
self._file_or_files = [get_config_path(f) for f in CONFIG_LEVELS[:-1]]
284+
self._file_or_files = [get_config_path(f) for f in CONFIG_LEVELS if f != 'repository']
285285
else:
286286
raise ValueError("No configuration level or configuration files specified")
287287
else:

0 commit comments

Comments
 (0)