summaryrefslogtreecommitdiff
path: root/remote-curl.c
diff options
context:
space:
mode:
authorTay Ray Chuan <rctay89@gmail.com>2010-03-02 18:49:30 +0800
committerJunio C Hamano <gitster@pobox.com>2010-03-02 11:10:36 -0800
commitaec49756020d20bd073e4daeaa5d7b4fed1fe300 (patch)
tree310fe3d007767fce5cbcd8576696989527dfe2d2 /remote-curl.c
parent888692b733b3109874bb570bb0680e93287ed338 (diff)
downloadgit-aec49756020d20bd073e4daeaa5d7b4fed1fe300.tar.gz
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 <rctay89@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'remote-curl.c')
-rw-r--r--remote-curl.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/remote-curl.c b/remote-curl.c
index e8485d1552..aa9f279014 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;