mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-07 01:43:48 +00:00
Adjust clone tests to USERNAME cred type
This commit is contained in:
parent
15c7da3442
commit
c13b68442f
@ -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);
|
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)
|
if (allowed_types & GIT_CREDTYPE_SSH_KEY)
|
||||||
return git_cred_ssh_key_new(cred, remote_user, pubkey, privkey, passphrase);
|
return git_cred_ssh_key_new(cred, remote_user, pubkey, privkey, passphrase);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user