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 34afc11

Browse files
benthayerByron
authored andcommitted
Changed ValueError
1 parent a613938 commit 34afc11

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
@@ -211,7 +211,7 @@ def get_config_path(config_level):
211211
elif config_level == "global":
212212
return osp.normpath(osp.expanduser("~/.gitconfig"))
213213
elif config_level == "repository":
214-
raise ValueError("repository configuration level not allowed")
214+
raise ValueError("No repo to get repository configuration from. Use Repo._get_config_path")
215215

216216
ValueError("Invalid configuration level: %r" % config_level)
217217

0 commit comments

Comments
(0)

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