diff options
author | Ben Straub <bs@github.com> | 2013-01-09 07:55:59 +0400 |
---|---|---|
committer | Ben Straub <bs@github.com> | 2013-01-10 01:31:17 +0400 |
commit | 520dcc1c000c7c29058d6ae56982461e782210fe (patch) | |
tree | 4d0a25b2dd626e1e832e52c8a067877851738200 /tests-clar/online/clone.c | |
parent | ffb02b1630da85e063a816cc6dddcdc004a8ff72 (diff) |
Move credential helpers to their own (optional) header
Diffstat (limited to 'tests-clar/online/clone.c')
-rw-r--r-- | tests-clar/online/clone.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests-clar/online/clone.c b/tests-clar/online/clone.c index 9c51d692c..8226bd054 100644 --- a/tests-clar/online/clone.c +++ b/tests-clar/online/clone.c @@ -1,6 +1,7 @@ #include "clar_libgit2.h" #include "git2/clone.h" +#include "git2/cred_helpers.h" #include "repository.h" #define LIVE_REPO_URL "http://github.com/libgit2/TestGitRepository" @@ -138,14 +139,14 @@ void test_online_clone__credentials(void) { /* Remote URL environment variable must be set. User and password are optional. */ const char *remote_url = cl_getenv("GITTEST_REMOTE_URL"); - git_cred_stock_userpass_plaintext_payload user_pass = { + git_cred_userpass_payload user_pass = { cl_getenv("GITTEST_REMOTE_USER"), cl_getenv("GITTEST_REMOTE_PASS") }; if (!remote_url) return; - g_options.cred_acquire_cb = git_cred_stock_userpass_plaintext; + g_options.cred_acquire_cb = git_cred_userpass; g_options.cred_acquire_payload = &user_pass; cl_git_pass(git_clone(&g_repo, remote_url, "./foo", &g_options)); |