summaryrefslogtreecommitdiff
path: root/examples/network/ls-remote.c
diff options
context:
space:
mode:
authorKrzysztof Adamski <k@japko.eu>2013-09-01 18:35:39 +0200
committerKrzysztof Adamski <k@japko.eu>2013-09-01 19:00:16 +0200
commit255836ddac05418f6bb2d68d27f5ff290669e2a9 (patch)
treee9e261c0d8ac17c38026503982bea9f5c4770a10 /examples/network/ls-remote.c
parentd6d523486c26f8f10cd687fa2aa328c770650288 (diff)
downloadlibgit2-255836ddac05418f6bb2d68d27f5ff290669e2a9.tar.gz
Adding credentials callback to ls-remote and fetch too.
Diffstat (limited to 'examples/network/ls-remote.c')
-rw-r--r--examples/network/ls-remote.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/network/ls-remote.c b/examples/network/ls-remote.c
index e837654a1..b22ac47a0 100644
--- a/examples/network/ls-remote.c
+++ b/examples/network/ls-remote.c
@@ -27,6 +27,7 @@ static int use_remote(git_repository *repo, char *name)
goto cleanup;
}
+ git_remote_set_cred_acquire_cb(remote, &cred_acquire_cb, NULL);
error = git_remote_connect(remote, GIT_DIRECTION_FETCH);
if (error < 0)