From dfb0a9c4bca590efaa86f8edc3fdb62bd536bce7 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Mon, 12 Jan 2015 10:25:10 +0100 Subject: Added specific test for roughly checking configuration paths. For some reason, I didn't trust the existing one as it tests that code more indirectly. Related to #160 --- git/repo/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'git/repo/base.py') diff --git a/git/repo/base.py b/git/repo/base.py index 5a93a5a2..d6e55553 100644 --- a/git/repo/base.py +++ b/git/repo/base.py @@ -354,7 +354,7 @@ class Repo(object): if config_level == "system": return "/etc/gitconfig" elif config_level == "user": - config_home = os.environ.get("XDG_CONFIG_HOME") or join(os.environ.get("HOME", '~'), ".config") + config_home = os.environ.get("XDG_CONFIG_HOME") or os.path.join(os.environ.get("HOME", '~'), ".config") return os.path.expanduser(join(config_home, "git", "config")) elif config_level == "global": return os.path.normpath(os.path.expanduser("~/.gitconfig")) -- cgit v1.2.3