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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/network/ls-remote.c b/examples/network/ls-remote.c
index a5c14cea8..5e3ade94f 100644
--- a/examples/network/ls-remote.c
+++ b/examples/network/ls-remote.c
@@ -13,7 +13,7 @@ static int use_remote(git_repository *repo, char *name)
git_remote_callbacks callbacks = GIT_REMOTE_CALLBACKS_INIT;
// Find the remote by name
- error = git_remote_load(&remote, repo, name);
+ error = git_remote_lookup(&remote, repo, name);
if (error < 0) {
error = git_remote_create_anonymous(&remote, repo, name, NULL);
if (error < 0)