summaryrefslogtreecommitdiff
path: root/builtin-config.c
diff options
context:
space:
mode:
authorAlex Riesen <raa.lkml@gmail.com>2008-10-27 11:22:09 +0100
committerJunio C Hamano <gitster@pobox.com>2008-10-30 17:52:24 -0700
commita4f34cbb4cea1f0b0e625b528f269f4b517c64f8 (patch)
treed17b28dc28f2f182c169030bd618a625a65b865c /builtin-config.c
parentaba13e7c0566f578f866504bfcb388a72f7e5079 (diff)
downloadgit-a4f34cbb4cea1f0b0e625b528f269f4b517c64f8.tar.gz
Use git_pathdup instead of xstrdup(git_path(...))
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-config.c')
-rw-r--r--builtin-config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-config.c b/builtin-config.c
index 91fdc4985d..f71016204b 100644
--- a/builtin-config.c
+++ b/builtin-config.c
@@ -84,7 +84,7 @@ static int get_value(const char* key_, const char* regex_)
local = config_exclusive_filename;
if (!local) {
const char *home = getenv("HOME");
- local = repo_config = xstrdup(git_path("config"));
+ local = repo_config = git_pathdup("config");
if (git_config_global() && home)
global = xstrdup(mkpath("%s/.gitconfig", home));
if (git_config_system())