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 /tests/network/remote/rename.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 'tests/network/remote/rename.c')
| -rw-r--r-- | tests/network/remote/rename.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/network/remote/rename.c b/tests/network/remote/rename.c index ed98ee811..4d8628425 100644 --- a/tests/network/remote/rename.c +++ b/tests/network/remote/rename.c @@ -167,7 +167,7 @@ void test_network_remote_rename__cannot_rename_an_inmemory_remote(void) { git_remote *remote; - cl_git_pass(git_remote_create_inmemory(&remote, _repo, NULL, "file:///blah")); + cl_git_pass(git_remote_create_anonymous(&remote, _repo, "file:///blah", NULL)); cl_git_fail(git_remote_rename(remote, "newname", NULL, NULL)); git_remote_free(remote); |
