]> git.proxmox.com Git - libgit2.git/commitdiff
Adjust clone tests to USERNAME cred type
authorCarlos Martín Nieto <cmn@dwim.me>
Wed, 27 Aug 2014 13:25:46 +0000 (15:25 +0200)
committerCarlos Martín Nieto <cmn@dwim.me>
Wed, 27 Aug 2014 13:25:46 +0000 (15:25 +0200)
tests/online/clone.c

index c9359655ef614974084e4908ed323359e956a44f..39b4815b1d036cd90481011c8194ead2220331d1 100644 (file)
@@ -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);