]> git.proxmox.com Git - libgit2.git/commitdiff
Fix examples
authorBen Straub <bs@github.com>
Fri, 21 Dec 2012 23:30:46 +0000 (15:30 -0800)
committerBen Straub <bs@github.com>
Fri, 21 Dec 2012 23:30:46 +0000 (15:30 -0800)
examples/network/fetch.c
examples/network/ls-remote.c

index f81c4fafe45459fb7ca3f04a1195a433e347da8e..2de58169d5cf7cbc26f1883e184b3631b4a1114a 100644 (file)
@@ -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_create_inmemory(&remote, repo, NULL, argv[1], NULL) < 0)
+               if (git_remote_create_inmemory(&remote, repo, argv[1], NULL) < 0)
                        return -1;
        }
 
index d3e3ed053b6e7aea16e9ba61c74f0ba769411264..a3eb01589fef9a87ae93170b83d0594a149f7f03 100644 (file)
@@ -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
        // 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;