Skip to content

Commit aec4975

Browse files
rctaygitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 888692b commit aec4975

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

remote-curl.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,9 +249,8 @@ static struct ref *parse_info_refs(struct discovery *heads)
249249
i++;
250250
}
251251

252-
init_walker();
253252
ref = alloc_ref("HEAD");
254-
if (!walker->fetch_ref(walker, ref) &&
253+
if (!http_fetch_ref(url, ref) &&
255254
!resolve_remote_symref(ref, refs)) {
256255
ref->next = refs;
257256
refs = ref;

0 commit comments

Comments
 (0)