diff options
| author | Carlos Martín Nieto <cmn@dwim.me> | 2015-05-17 15:11:45 +0200 |
|---|---|---|
| committer | Carlos Martín Nieto <cmn@dwim.me> | 2015-05-28 15:32:20 +0200 |
| commit | ae5b93629c148dc96de7337095fba4b1e901ee2b (patch) | |
| tree | 2cc4365b5eac1b400d40ba558521320bade143bc /examples/network/fetch.c | |
| parent | 70f7484d2ae7ed4b5c4d074aa5e9f99ebeebdd77 (diff) | |
| download | libgit2-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/fetch.c')
| -rw-r--r-- | examples/network/fetch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/network/fetch.c b/examples/network/fetch.c index e47f5be4f..67444cb4a 100644 --- a/examples/network/fetch.c +++ b/examples/network/fetch.c @@ -92,7 +92,7 @@ int fetch(git_repository *repo, int argc, char **argv) // Figure out whether it's a named remote or a URL printf("Fetching %s for repo %p\n", argv[1], repo); if (git_remote_lookup(&remote, repo, argv[1]) < 0) { - if (git_remote_create_anonymous(&remote, repo, argv[1], NULL) < 0) + if (git_remote_create_anonymous(&remote, repo, argv[1]) < 0) return -1; } |
