Commit 69d1bd91 by Ben Straub

Fix examples

parent 2808ec9a
...@@ -76,7 +76,7 @@ int fetch(git_repository *repo, int argc, char **argv) ...@@ -76,7 +76,7 @@ int fetch(git_repository *repo, int argc, char **argv)
// Figure out whether it's a named remote or a URL // Figure out whether it's a named remote or a URL
printf("Fetching %s for repo %p\n", argv[1], repo); printf("Fetching %s for repo %p\n", argv[1], repo);
if (git_remote_load(&remote, repo, argv[1]) < 0) { 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; return -1;
} }
......
...@@ -21,7 +21,7 @@ static int use_unnamed(git_repository *repo, const char *url) ...@@ -21,7 +21,7 @@ static int use_unnamed(git_repository *repo, const char *url)
// Create an instance of a remote from the URL. The transport to use // Create an instance of a remote from the URL. The transport to use
// is detected from the URL // 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) if (error < 0)
goto cleanup; goto cleanup;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment