diff options
author | Krzysztof Adamski <k@japko.eu> | 2013-09-01 18:35:39 +0200 |
---|---|---|
committer | Krzysztof Adamski <k@japko.eu> | 2013-09-01 19:00:16 +0200 |
commit | 255836ddac05418f6bb2d68d27f5ff290669e2a9 (patch) | |
tree | e9e261c0d8ac17c38026503982bea9f5c4770a10 /examples/network/fetch.c | |
parent | d6d523486c26f8f10cd687fa2aa328c770650288 (diff) | |
download | libgit2-255836ddac05418f6bb2d68d27f5ff290669e2a9.tar.gz |
Adding credentials callback to ls-remote and fetch too.
Diffstat (limited to 'examples/network/fetch.c')
-rw-r--r-- | examples/network/fetch.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/network/fetch.c b/examples/network/fetch.c index 6020ec6ec..ce016ce0b 100644 --- a/examples/network/fetch.c +++ b/examples/network/fetch.c @@ -92,6 +92,7 @@ int fetch(git_repository *repo, int argc, char **argv) callbacks.update_tips = &update_cb; callbacks.progress = &progress_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; |