diff options
| author | Vicent Martà <vicent@github.com> | 2013-10-02 05:56:37 -0700 |
|---|---|---|
| committer | Vicent Martà <vicent@github.com> | 2013-10-02 05:56:37 -0700 |
| commit | 5bfead1dba919f6b47f52da675ea94407e8baf49 (patch) | |
| tree | 4b879238df61eccc2f048fe51e10fce421967e26 /tests-clar/online/push.c | |
| parent | 71e33d2649f990086237a6cd0fdb7f7d6f742b51 (diff) | |
| parent | 0e0cf78773bea0d06298ba3bf981a3be839041df (diff) | |
| download | libgit2-5bfead1dba919f6b47f52da675ea94407e8baf49.tar.gz | |
Merge pull request #1855 from libgit2/cmn/clone-into
An alternative for 'clone' with options
Diffstat (limited to 'tests-clar/online/push.c')
| -rw-r--r-- | tests-clar/online/push.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests-clar/online/push.c b/tests-clar/online/push.c index 6a4a9b281..05cef56e7 100644 --- a/tests-clar/online/push.c +++ b/tests-clar/online/push.c @@ -17,6 +17,8 @@ static char *_remote_url; static char *_remote_user; static char *_remote_pass; +static int cred_acquire_cb(git_cred **, const char *, const char *, unsigned int, void *); + static git_remote *_remote; static bool _cred_acquire_called; static record_callbacks_data _record_cbs_data = {{ 0 }}; @@ -294,7 +296,6 @@ void test_online_push__initialize(void) if (_remote_url) { cl_git_pass(git_remote_create(&_remote, _repo, "test", _remote_url)); - git_remote_set_cred_acquire_cb(_remote, cred_acquire_cb, &_cred_acquire_called); record_callbacks_data_clear(&_record_cbs_data); git_remote_set_callbacks(_remote, &_record_cbs); @@ -326,7 +327,7 @@ void test_online_push__initialize(void) /* Now that we've deleted everything, fetch from the remote */ cl_git_pass(git_remote_connect(_remote, GIT_DIRECTION_FETCH)); - cl_git_pass(git_remote_download(_remote, NULL, NULL)); + cl_git_pass(git_remote_download(_remote)); cl_git_pass(git_remote_update_tips(_remote)); git_remote_disconnect(_remote); } else |
