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 /examples/network/fetch.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 'examples/network/fetch.c')
-rw-r--r-- | examples/network/fetch.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/network/fetch.c b/examples/network/fetch.c index ce016ce0b..0c545ad7e 100644 --- a/examples/network/fetch.c +++ b/examples/network/fetch.c @@ -35,7 +35,7 @@ static void *download(void *ptr) // Download the packfile and index it. This function updates the // amount of received data and the indexer stats which lets you // inform the user about progress. - if (git_remote_download(data->remote, NULL, NULL) < 0) { + if (git_remote_download(data->remote) < 0) { data->ret = -1; goto exit; } @@ -91,8 +91,8 @@ int fetch(git_repository *repo, int argc, char **argv) // Set up the callbacks (only update_tips for now) callbacks.update_tips = &update_cb; callbacks.progress = &progress_cb; + callbacks.credentials = cred_acquire_cb; git_remote_set_callbacks(remote, &callbacks); - git_remote_set_cred_acquire_cb(remote, &cred_acquire_cb, NULL); // Set up the information for the background worker thread data.remote = remote; |