From ad4b5beb50dc484f86534dc127646eafb39d96fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn=20Nieto?= Date: Wed, 25 Jul 2012 10:40:59 +0200 Subject: transport: store the refs in a common area Instad of each transport having its own function and logic to get to its refs, store them directly in transport. Leverage the new gitno_buffer to make the parsing and storing of the refs use common code and get rid of the git_protocol struct. --- src/fetch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/fetch.c') diff --git a/src/fetch.c b/src/fetch.c index 0de0c629e..26fa39601 100644 --- a/src/fetch.c +++ b/src/fetch.c @@ -71,7 +71,7 @@ static int filter_wants(git_remote *remote) if (git_repository_odb__weakptr(&p.odb, remote->repo) < 0) return -1; - return remote->transport->ls(remote->transport, &filter_ref__cb, &p); + return git_remote_ls(remote, filter_ref__cb, &p); } /* Wait until we get an ack from the */ -- cgit v1.2.1