diff options
| author | Carlos Martín Nieto <cmn@dwim.me> | 2014-03-26 11:15:57 +0100 |
|---|---|---|
| committer | Carlos Martín Nieto <cmn@dwim.me> | 2014-04-01 13:38:04 +0200 |
| commit | fd536d29c127648abb2ce5f6f619135ce69b9800 (patch) | |
| tree | 8113aac1ee75b94d8637ca8519a456b54c826900 /examples/network/fetch.c | |
| parent | 77b699e0da3d4a4fed742893bd172f3ee7b936d5 (diff) | |
| download | libgit2-fd536d29c127648abb2ce5f6f619135ce69b9800.tar.gz | |
remote: rename inmemory to anonymous and swap url and fetch order
The order in this function is the opposite to what
create_with_fetchspec() has, so change this one, as url-then-refspec is
what git does.
As we need to break compilation and the swap doesn't do that, let's take
this opportunity to rename in-memory remotes to anonymous as that's
really what sets them apart.
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 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; } |
