diff options
author | Vicent Marti <vicent@github.com> | 2014-04-01 13:47:44 +0200 |
---|---|---|
committer | Vicent Marti <vicent@github.com> | 2014-04-01 13:47:44 +0200 |
commit | 9325460a9360516c10e1d79f5b85882d84725e29 (patch) | |
tree | 01500fa0788d45dc41f24006b2e43feec6df461d /examples | |
parent | 3ab57816015f59e9741017f866d3d87a4651b54f (diff) | |
parent | fd536d29c127648abb2ce5f6f619135ce69b9800 (diff) | |
download | libgit2-9325460a9360516c10e1d79f5b85882d84725e29.tar.gz |
Merge pull request #2206 from libgit2/cmn/inmemory-swap-order
Rename in-memory remote to anonymous and swap url and fetch order
Diffstat (limited to 'examples')
-rw-r--r-- | examples/network/fetch.c | 2 | ||||
-rw-r--r-- | examples/network/ls-remote.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/network/fetch.c b/examples/network/fetch.c index ad16f2793..fdd82a1f7 100644 --- a/examples/network/fetch.c +++ b/examples/network/fetch.c @@ -91,7 +91,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]) < 0) + if (git_remote_create_anonymous(&remote, repo, argv[1], NULL) < 0) return -1; } diff --git a/examples/network/ls-remote.c b/examples/network/ls-remote.c index 1e08b293e..a5c14cea8 100644 --- a/examples/network/ls-remote.c +++ b/examples/network/ls-remote.c @@ -15,7 +15,7 @@ static int use_remote(git_repository *repo, char *name) // Find the remote by name error = git_remote_load(&remote, repo, name); if (error < 0) { - error = git_remote_create_inmemory(&remote, repo, NULL, name); + error = git_remote_create_anonymous(&remote, repo, name, NULL); if (error < 0) goto cleanup; } |