Commit 352ee171524475e7160130439f889ed9ce7e705a

Carlos Martín Nieto 2015-06-12T12:45:49

clone: set the credentials callback during testing

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/tests/online/clone.c b/tests/online/clone.c
index fa0dbd6..e63cf55 100644
--- a/tests/online/clone.c
+++ b/tests/online/clone.c
@@ -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));