From 0e20ba606655d25aa3fdeb9948a55e40107ac269 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn=20Nieto?= Date: Sat, 30 Jul 2011 18:56:20 +0200 Subject: Add a generic send_wants MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Carlos Martín Nieto --- src/fetch.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/fetch.c') diff --git a/src/fetch.c b/src/fetch.c index b9ddaf16c..59beb1ea3 100644 --- a/src/fetch.c +++ b/src/fetch.c @@ -44,7 +44,10 @@ static int whn_cmp(const void *a, const void *b) return headb->type - heada->type; } -/* FIXME: we assume that the transport has been connected, enforce that somehow */ +/* + * FIXME: we assume that the transport has been connected, enforce + * that somehow, we also want to be called from _negotiate + */ int git_fetch_list_want(git_headarray *whn_list, git_repository *repo, git_remote *remote) { git_vector list; @@ -179,7 +182,7 @@ int git_fetch_negotiate(git_headarray *list, git_repository *repo, git_remote *r * Now we have everything set up so we can start tell the server * what we want and what we have. */ - git_pkt_send_wants(list); + git_remote_send_wants(remote, list); cleanup: -- cgit v1.2.1