mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-09 20:29:27 +00:00
Fix broken online push tests
This commit is contained in:
parent
5b18822545
commit
83db7e09e2
@ -20,7 +20,6 @@ static char *_remote_pass;
|
|||||||
static int cred_acquire_cb(git_cred **, const char *, const char *, unsigned int, void *);
|
static int cred_acquire_cb(git_cred **, const char *, const char *, unsigned int, void *);
|
||||||
|
|
||||||
static git_remote *_remote;
|
static git_remote *_remote;
|
||||||
static bool _cred_acquire_called;
|
|
||||||
static record_callbacks_data _record_cbs_data = {{ 0 }};
|
static record_callbacks_data _record_cbs_data = {{ 0 }};
|
||||||
static git_remote_callbacks _record_cbs = RECORD_CALLBACKS_INIT(&_record_cbs_data);
|
static git_remote_callbacks _record_cbs = RECORD_CALLBACKS_INIT(&_record_cbs_data);
|
||||||
|
|
||||||
@ -47,8 +46,6 @@ static int cred_acquire_cb(
|
|||||||
GIT_UNUSED(url);
|
GIT_UNUSED(url);
|
||||||
GIT_UNUSED(user_from_url);
|
GIT_UNUSED(user_from_url);
|
||||||
|
|
||||||
*((bool*)payload) = true;
|
|
||||||
|
|
||||||
if (GIT_CREDTYPE_SSH_PUBLICKEY & allowed_types)
|
if (GIT_CREDTYPE_SSH_PUBLICKEY & allowed_types)
|
||||||
return git_cred_ssh_keyfile_passphrase_new(cred, _remote_user, _remote_ssh_pubkey, _remote_ssh_key, _remote_ssh_passphrase);
|
return git_cred_ssh_keyfile_passphrase_new(cred, _remote_user, _remote_ssh_pubkey, _remote_ssh_key, _remote_ssh_passphrase);
|
||||||
|
|
||||||
@ -251,7 +248,6 @@ void test_online_push__initialize(void)
|
|||||||
git_vector delete_specs = GIT_VECTOR_INIT;
|
git_vector delete_specs = GIT_VECTOR_INIT;
|
||||||
size_t i;
|
size_t i;
|
||||||
char *curr_del_spec;
|
char *curr_del_spec;
|
||||||
_cred_acquire_called = false;
|
|
||||||
|
|
||||||
_repo = cl_git_sandbox_init("push_src");
|
_repo = cl_git_sandbox_init("push_src");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user