X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin-http-fetch.c;h=3a062487a7eacd01ed824b46a9124dd343cd2e60;hb=ad5fa3cc0e115a8b111868af2f727322feb144cb;hp=7f450c61d95945862fc44bec99859a229269b224;hpb=3960a951795819e6cd09422e15092b45cdd46f73;p=git.git diff --git a/builtin-http-fetch.c b/builtin-http-fetch.c index 7f450c61d..3a062487a 100644 --- a/builtin-http-fetch.c +++ b/builtin-http-fetch.c @@ -18,7 +18,7 @@ int cmd_http_fetch(int argc, const char **argv, const char *prefix) int get_verbosely = 0; int get_recover = 0; - git_config(git_default_config); + git_config(git_default_config, NULL); while (arg < argc && argv[arg][0] == '-') { if (argv[arg][1] == 't') { @@ -59,7 +59,7 @@ int cmd_http_fetch(int argc, const char **argv, const char *prefix) url = rewritten_url; } - walker = get_http_walker(url); + walker = get_http_walker(url, NULL); walker->get_tree = get_tree; walker->get_history = get_history; walker->get_all = get_all; @@ -80,8 +80,7 @@ int cmd_http_fetch(int argc, const char **argv, const char *prefix) walker_free(walker); - if (rewritten_url) - free(rewritten_url); + free(rewritten_url); return rc; }