summaryrefslogtreecommitdiff
path: root/examples/network/ls-remote.c
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2015-05-17 15:11:45 +0200
committerCarlos Martín Nieto <cmn@dwim.me>2015-05-28 15:32:20 +0200
commitae5b93629c148dc96de7337095fba4b1e901ee2b (patch)
tree2cc4365b5eac1b400d40ba558521320bade143bc /examples/network/ls-remote.c
parent70f7484d2ae7ed4b5c4d074aa5e9f99ebeebdd77 (diff)
downloadlibgit2-ae5b93629c148dc96de7337095fba4b1e901ee2b.tar.gz
remote: remove fetch parameter from create_anonymous
An anonymous remote is not configured and cannot therefore have configured refspecs. Remove the parameter which adds this from the constructor.
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 a26092265..21026562f 100644
--- a/examples/network/ls-remote.c
+++ b/examples/network/ls-remote.c
@@ -15,7 +15,7 @@ static int use_remote(git_repository *repo, char *name)
// Find the remote by name
error = git_remote_lookup(&remote, repo, name);
if (error < 0) {
- error = git_remote_create_anonymous(&remote, repo, name, NULL);
+ error = git_remote_create_anonymous(&remote, repo, name);
if (error < 0)
goto cleanup;
}