clone: set the credentials callback during testing

This commit is contained in:
Carlos Martín Nieto 2015-06-12 12:45:49 +02:00
parent 0f69b41d2e
commit 352ee17152

View File

@ -428,6 +428,7 @@ void test_online_clone__ssh_with_paths(void)
g_options.remote_cb = custom_remote_ssh_with_paths;
g_options.fetch_opts.callbacks.transport = git_transport_ssh_with_paths;
g_options.fetch_opts.callbacks.credentials = cred_cb;
g_options.fetch_opts.callbacks.payload = &arr;
cl_git_fail(git_clone(&g_repo, remote_url, "./foo", &g_options));