From c4355b28e28719f89ac8b8726c866eacba4fb899 Mon Sep 17 00:00:00 2001 From: David Aguilar Date: Thu, 8 Jul 2010 01:08:16 -0700 Subject: [PATCH] gitcfg: Use os.path.join() to construct the path to ~/.gitconfig Signed-off-by: David Aguilar --- cola/gitcfg.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cola/gitcfg.py b/cola/gitcfg.py index 33cebf72..9a75527a 100644 --- a/cola/gitcfg.py +++ b/cola/gitcfg.py @@ -25,8 +25,9 @@ def _appendifexists(category, path, result): def _stat_info(): data = [] # Try /etc/gitconfig as a fallback for the system config + userconfig = os.path.expanduser(os.path.join('~', '.gitconfig')) _appendifexists('system', '/etc/gitconfig', data) - _appendifexists('user', os.path.expanduser('~/.gitconfig'), data) + _appendifexists('user', userconfig, data) _appendifexists('repo', git.instance().git_path('config'), data) return data -- 2.11.4.GIT