X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=config.c;h=82807c83b20ef8fbabfda7d476feff92f2dbb823;hb=daae06259556246959963947752bde4ee2df7b44;hp=53f04a076a7275965090edd4ca2a34652c4f5679;hpb=57b0fc4516249e1aa86169718d148fbf2940dc0c;p=git.git diff --git a/config.c b/config.c index 53f04a076..82807c83b 100644 --- a/config.c +++ b/config.c @@ -630,7 +630,7 @@ int git_config(config_fn_t fn, void *data) free(user_config); } - repo_config = xstrdup(git_path("config")); + repo_config = git_pathdup("config"); ret += git_config_from_file(fn, repo_config, data); free(repo_config); return ret; @@ -872,7 +872,7 @@ int git_config_set_multivar(const char* key, const char* value, if (config_exclusive_filename) config_filename = xstrdup(config_exclusive_filename); else - config_filename = xstrdup(git_path("config")); + config_filename = git_pathdup("config"); /* * Since "key" actually contains the section name and the real @@ -1132,7 +1132,7 @@ int git_config_rename_section(const char *old_name, const char *new_name) if (config_exclusive_filename) config_filename = xstrdup(config_exclusive_filename); else - config_filename = xstrdup(git_path("config")); + config_filename = git_pathdup("config"); out_fd = hold_lock_file_for_update(lock, config_filename, 0); if (out_fd < 0) { ret = error("could not lock config file %s", config_filename);