From: Tay Ray Chuan Date: Tue, 2 Mar 2010 10:49:30 +0000 (+0800) Subject: remote-curl: use http_fetch_ref() instead of walker wrapper X-Git-Tag: v1.7.1-rc0~65^2~1 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=aec49756020d20bd073e4daeaa5d7b4fed1fe300;p=git.git remote-curl: use http_fetch_ref() instead of walker wrapper The http-walker implementation of walker->fetch_ref() doesn't do anything special compared to http_fetch_ref() anyway. Remove init_walker() invocation before fetching the ref, since we aren't using the walker wrapper and don't need a walker instance anymore. Signed-off-by: Tay Ray Chuan Signed-off-by: Junio C Hamano --- diff --git a/remote-curl.c b/remote-curl.c index e8485d155..aa9f27901 100644 --- a/remote-curl.c +++ b/remote-curl.c @@ -249,9 +249,8 @@ static struct ref *parse_info_refs(struct discovery *heads) i++; } - init_walker(); ref = alloc_ref("HEAD"); - if (!walker->fetch_ref(walker, ref) && + if (!http_fetch_ref(url, ref) && !resolve_remote_symref(ref, refs)) { ref->next = refs; refs = ref;