diff options
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 8048fd67a..f81c4fafe 100644 --- a/examples/network/fetch.c +++ b/examples/network/fetch.c @@ -76,7 +76,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_load(&remote, repo, argv[1]) < 0) { - if (git_remote_new(&remote, repo, NULL, argv[1], NULL) < 0) + if (git_remote_create_inmemory(&remote, repo, NULL, argv[1], NULL) < 0) return -1; } |
