summaryrefslogtreecommitdiff
path: root/examples/network/ls-remote.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/network/ls-remote.c')
-rw-r--r--examples/network/ls-remote.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/network/ls-remote.c b/examples/network/ls-remote.c
index 5e3ade94f..a26092265 100644
--- a/examples/network/ls-remote.c
+++ b/examples/network/ls-remote.c
@@ -25,9 +25,8 @@ static int use_remote(git_repository *repo, char *name)
* each of the remote references.
*/
callbacks.credentials = cred_acquire_cb;
- git_remote_set_callbacks(remote, &callbacks);
- error = git_remote_connect(remote, GIT_DIRECTION_FETCH);
+ error = git_remote_connect(remote, GIT_DIRECTION_FETCH, &callbacks);
if (error < 0)
goto cleanup;