X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=inline;f=config.c;h=67cc1dcad0b52f0186c0c9564af43853d8994797;hb=7b51b77dbc71e83789f59f0cd559489115478f27;hp=b8d289d21789b5017579d90b7894db8ebee4c47a;hpb=500ac7f42e7f2ae42e33be3bbb7120b788175b1d;p=git.git diff --git a/config.c b/config.c index b8d289d21..67cc1dcad 100644 --- a/config.c +++ b/config.c @@ -649,7 +649,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; @@ -889,7 +889,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 @@ -1149,7 +1149,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);