diff options
author | Tay Ray Chuan <rctay89@gmail.com> | 2010-03-02 18:49:29 +0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-03-02 11:10:36 -0800 |
commit | 888692b733b3109874bb570bb0680e93287ed338 (patch) | |
tree | f946cffbd49e62c3a85de0cba8ee415ad4125a52 /http-walker.c | |
parent | 09ae9aca14750f00c9e25fd16cdf60819fb410a8 (diff) | |
download | git-888692b733b3109874bb570bb0680e93287ed338.tar.gz |
http: init and cleanup separately from http-walker
Previously, all our http operations were done with http-walker. With the
new remote-curl helper, we find ourselves using http methods outside of
http-walker - for example, fetching info/refs.
Accomodate this by separating http_init() and http_cleanup() invocations
from http-walker.
Signed-off-by: Tay Ray Chuan <rctay89@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'http-walker.c')
-rw-r--r-- | http-walker.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/http-walker.c b/http-walker.c index 508e35517c..ef99ae647a 100644 --- a/http-walker.c +++ b/http-walker.c @@ -559,18 +559,14 @@ static void cleanup(struct walker *walker) free(data); walker->data = NULL; } - - http_cleanup(); } -struct walker *get_http_walker(const char *url, struct remote *remote) +struct walker *get_http_walker(const char *url) { char *s; struct walker_data *data = xmalloc(sizeof(struct walker_data)); struct walker *walker = xmalloc(sizeof(struct walker)); - http_init(remote); - data->alt = xmalloc(sizeof(*data->alt)); data->alt->base = xmalloc(strlen(url) + 1); strcpy(data->alt->base, url); |