Use git_pathdup instead of xstrdup(git_path(...))

Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Alex Riesen
2008-10-27 11:22:09 +01:00
committed by Junio C Hamano
parent aba13e7c05
commit a4f34cbb4c
9 changed files with 12 additions and 12 deletions

View File

@ -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())