diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2014-11-08 15:25:51 +0300 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2014-11-08 15:28:27 +0300 |
commit | 209425ce26d777794e9995f757656c7731df087e (patch) | |
tree | 5e4788483721b5f1e17c83c15873c36f47f64806 /tests/online | |
parent | 4e1b3b3b7186b017223b8302a51289ff92ccba25 (diff) |
remote: rename _load() to _lookup()
This brings it in line with the rest of the lookup functions.
Diffstat (limited to 'tests/online')
-rw-r--r-- | tests/online/clone.c | 4 | ||||
-rw-r--r-- | tests/online/fetch.c | 2 | ||||
-rw-r--r-- | tests/online/fetchhead.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/tests/online/clone.c b/tests/online/clone.c index 13abd39bd..cae7b3338 100644 --- a/tests/online/clone.c +++ b/tests/online/clone.c @@ -46,7 +46,7 @@ void test_online_clone__network_full(void) cl_git_pass(git_clone(&g_repo, LIVE_REPO_URL, "./foo", &g_options)); cl_assert(!git_repository_is_bare(g_repo)); - cl_git_pass(git_remote_load(&origin, g_repo, "origin")); + cl_git_pass(git_remote_lookup(&origin, g_repo, "origin")); cl_assert_equal_i(GIT_REMOTE_DOWNLOAD_TAGS_AUTO, origin->download_tags); @@ -61,7 +61,7 @@ void test_online_clone__network_bare(void) cl_git_pass(git_clone(&g_repo, LIVE_REPO_URL, "./foo", &g_options)); cl_assert(git_repository_is_bare(g_repo)); - cl_git_pass(git_remote_load(&origin, g_repo, "origin")); + cl_git_pass(git_remote_lookup(&origin, g_repo, "origin")); git_remote_free(origin); } diff --git a/tests/online/fetch.c b/tests/online/fetch.c index ce92ee82b..ec16dd2fd 100644 --- a/tests/online/fetch.c +++ b/tests/online/fetch.c @@ -120,7 +120,7 @@ void test_online_fetch__doesnt_retrieve_a_pack_when_the_repository_is_up_to_date cl_git_pass(git_repository_open(&_repository, "./fetch/lg2")); - cl_git_pass(git_remote_load(&remote, _repository, "origin")); + cl_git_pass(git_remote_lookup(&remote, _repository, "origin")); cl_git_pass(git_remote_connect(remote, GIT_DIRECTION_FETCH)); cl_assert_equal_i(false, invoked); diff --git a/tests/online/fetchhead.c b/tests/online/fetchhead.c index bd423bbb0..b0a80cd58 100644 --- a/tests/online/fetchhead.c +++ b/tests/online/fetchhead.c @@ -42,7 +42,7 @@ static void fetchhead_test_fetch(const char *fetchspec, const char *expected_fet int equals = 0; git_strarray array, *active_refs = NULL; - cl_git_pass(git_remote_load(&remote, g_repo, "origin")); + cl_git_pass(git_remote_lookup(&remote, g_repo, "origin")); git_remote_set_autotag(remote, GIT_REMOTE_DOWNLOAD_TAGS_AUTO); if(fetchspec != NULL) { |