summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Thayer <ben@benthayer.com>2019-10-23 10:41:01 -0500
committerSebastian Thiel <sebastian.thiel@icloud.com>2019-10-28 08:43:58 +0100
commit34afc113b669873cbaa0a5eafee10e7ac89f11d8 (patch)
treeb85290025f2d970714d74cfc5b5bfc8aaf3d6830
parenta61393899b50ae5040455499493104fb4bad6feb (diff)
downloadgitpython-34afc113b669873cbaa0a5eafee10e7ac89f11d8.tar.gz
Changed ValueError
-rw-r--r--git/config.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/git/config.py b/git/config.py
index 2464865d..257474a0 100644
--- a/git/config.py
+++ b/git/config.py
@@ -211,7 +211,7 @@ def get_config_path(config_level):
elif config_level == "global":
return osp.normpath(osp.expanduser("~/.gitconfig"))
elif config_level == "repository":
- raise ValueError("repository configuration level not allowed")
+ raise ValueError("No repo to get repository configuration from. Use Repo._get_config_path")
ValueError("Invalid configuration level: %r" % config_level)