// 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_create_inmemory(&remote, repo, NULL, argv[1], NULL) < 0)
+ if (git_remote_create_inmemory(&remote, repo, argv[1], NULL) < 0)
return -1;
}
// Create an instance of a remote from the URL. The transport to use
// is detected from the URL
- error = git_remote_create_inmemory(&remote, repo, NULL, url, NULL);
+ error = git_remote_create_inmemory(&remote, repo, url, NULL);
if (error < 0)
goto cleanup;