summaryrefslogtreecommitdiff
path: root/tests-clar/online/fetchhead.c
diff options
context:
space:
mode:
authorVicent Martí <vicent@github.com>2013-10-02 05:56:37 -0700
committerVicent Martí <vicent@github.com>2013-10-02 05:56:37 -0700
commit5bfead1dba919f6b47f52da675ea94407e8baf49 (patch)
tree4b879238df61eccc2f048fe51e10fce421967e26 /tests-clar/online/fetchhead.c
parent71e33d2649f990086237a6cd0fdb7f7d6f742b51 (diff)
parent0e0cf78773bea0d06298ba3bf981a3be839041df (diff)
downloadlibgit2-5bfead1dba919f6b47f52da675ea94407e8baf49.tar.gz
Merge pull request #1855 from libgit2/cmn/clone-into
An alternative for 'clone' with options
Diffstat (limited to 'tests-clar/online/fetchhead.c')
-rw-r--r--tests-clar/online/fetchhead.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests-clar/online/fetchhead.c b/tests-clar/online/fetchhead.c
index 58717eef8..57b183f88 100644
--- a/tests-clar/online/fetchhead.c
+++ b/tests-clar/online/fetchhead.c
@@ -12,10 +12,12 @@ static git_clone_options g_options;
void test_online_fetchhead__initialize(void)
{
+ git_remote_callbacks dummy_callbacks = GIT_REMOTE_CALLBACKS_INIT;
g_repo = NULL;
memset(&g_options, 0, sizeof(git_clone_options));
g_options.version = GIT_CLONE_OPTIONS_VERSION;
+ g_options.remote_callbacks = dummy_callbacks;
}
void test_online_fetchhead__cleanup(void)
@@ -48,7 +50,7 @@ static void fetchhead_test_fetch(const char *fetchspec, const char *expected_fet
}
cl_git_pass(git_remote_connect(remote, GIT_DIRECTION_FETCH));
- cl_git_pass(git_remote_download(remote, NULL, NULL));
+ cl_git_pass(git_remote_download(remote));
cl_git_pass(git_remote_update_tips(remote));
git_remote_disconnect(remote);
git_remote_free(remote);