Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

‎git/config.py

Lines changed: 1 addition & 1 deletion
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_LEVELSiff!='repository']
285285
else:
286286
raise ValueError("No configuration level or configuration files specified")
287287
else:

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /