X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=http-fetch.c;h=762c750d7af3651287c147034d3dead469453e7c;hb=da288e25d9e10b746cf3b311cb4503d1810cde37;hp=ffd0ad7e295d7341776bb7b6407602cdb2997ef3;hpb=796a01c41ca0b66f798571c7e876b3de4607f498;p=git.git diff --git a/http-fetch.c b/http-fetch.c index ffd0ad7e2..762c750d7 100644 --- a/http-fetch.c +++ b/http-fetch.c @@ -1,5 +1,6 @@ #include "cache.h" #include "exec_cmd.h" +#include "http.h" #include "walker.h" static const char http_fetch_usage[] = "git http-fetch " @@ -69,7 +70,8 @@ int main(int argc, const char **argv) url = rewritten_url; } - walker = get_http_walker(url, NULL); + http_init(NULL); + walker = get_http_walker(url); walker->get_tree = get_tree; walker->get_history = get_history; walker->get_all = get_all; @@ -89,6 +91,7 @@ int main(int argc, const char **argv) } walker_free(walker); + http_cleanup(); free(rewritten_url);