From c13b68442fa92c19fb8e92f0c1da4704fe14174f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn=20Nieto?= Date: Wed, 27 Aug 2014 15:25:46 +0200 Subject: [PATCH] Adjust clone tests to USERNAME cred type --- tests/online/clone.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/online/clone.c b/tests/online/clone.c index c9359655e..39b4815b1 100644 --- a/tests/online/clone.c +++ b/tests/online/clone.c @@ -356,6 +356,9 @@ static int cred_cb(git_cred **cred, const char *url, const char *user_from_url, GIT_UNUSED(url); GIT_UNUSED(user_from_url); GIT_UNUSED(payload); + if (allowed_types & GIT_CREDTYPE_USERNAME) + return git_cred_username_new(cred, remote_user); + if (allowed_types & GIT_CREDTYPE_SSH_KEY) return git_cred_ssh_key_new(cred, remote_user, pubkey, privkey, passphrase);