summaryrefslogtreecommitdiff
path: root/src/fetch.c
diff options
context:
space:
mode:
authorCarlos Martín Nieto <carlos@cmartin.tk>2011-07-30 18:56:20 +0200
committerVicent Marti <tanoku@gmail.com>2011-08-18 02:34:07 +0200
commit0e20ba606655d25aa3fdeb9948a55e40107ac269 (patch)
tree2ff7b9a73bc812391e74354a4f05d5589f007ea6 /src/fetch.c
parent65fbc48a175fd1413482d22eb6785c8f94acc3cb (diff)
downloadlibgit2-0e20ba606655d25aa3fdeb9948a55e40107ac269.tar.gz
Add a generic send_wants
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
Diffstat (limited to 'src/fetch.c')
-rw-r--r--src/fetch.c7
1 files changed, 5 insertions, 2 deletions
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: