Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Straub <bs@github.com>2013-01-09 07:55:59 +0400
committerBen Straub <bs@github.com>2013-01-10 01:31:17 +0400
commit520dcc1c000c7c29058d6ae56982461e782210fe (patch)
tree4d0a25b2dd626e1e832e52c8a067877851738200 /tests-clar/online/clone.c
parentffb02b1630da85e063a816cc6dddcdc004a8ff72 (diff)
Move credential helpers to their own (optional) header
Diffstat (limited to 'tests-clar/online/clone.c')
-rw-r--r--tests-clar/online/clone.c5
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));