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>
Tay Ray Chuan committed
Mar 2, 2010 at 18:49 UTC
aec49756020d20bd073e4daeaa5d7b4fed1fe300
1 file changed
+1
-2
remote-curl.c
+1
-2
@@ -249,9 +249,8 @@ static struct ref *parse_info_refs(struct discovery *heads)
249
i++;
250
}
251
252
- init_walker();
252
ref = alloc_ref("HEAD");
254
- if (!walker->fetch_ref(walker, ref) &&
253
+ if (!http_fetch_ref(url, ref) &&
254
!resolve_remote_symref(ref, refs)) {
255
ref->next = refs;
256
refs = ref;