summaryrefslogtreecommitdiff
path: root/src/fetch.c
diff options
context:
space:
mode:
authorCarlos Martín Nieto <carlos@cmartin.tk>2012-07-25 10:40:59 +0200
committerCarlos Martín Nieto <carlos@cmartin.tk>2012-07-30 20:28:16 +0200
commitad4b5beb50dc484f86534dc127646eafb39d96fe (patch)
tree93cd4a4a32c2fc21c7b2977f32e64c649620510d /src/fetch.c
parentb49c8f71aef574ce6606282a498627f5106220d5 (diff)
downloadlibgit2-ad4b5beb50dc484f86534dc127646eafb39d96fe.tar.gz
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.
Diffstat (limited to 'src/fetch.c')
-rw-r--r--src/fetch.c2
1 files changed, 1 insertions, 1 deletions
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 */