mirror of
https://git.proxmox.com/git/libgit2
synced 2025-06-23 09:10:46 +00:00
Fix references to git_remote_lookup.
This commit is contained in:
parent
439e19f632
commit
82eeba8142
@ -81,7 +81,7 @@ void test_network_fetchlocal__prune(void)
|
||||
cl_git_pass(git_reference_delete(ref));
|
||||
git_reference_free(ref);
|
||||
|
||||
cl_git_pass(git_remote_load(&origin, repo, GIT_REMOTE_ORIGIN));
|
||||
cl_git_pass(git_remote_lookup(&origin, repo, GIT_REMOTE_ORIGIN));
|
||||
git_remote_set_callbacks(origin, &callbacks);
|
||||
cl_git_pass(git_remote_connect(origin, GIT_DIRECTION_FETCH));
|
||||
cl_git_pass(git_remote_download(origin, NULL));
|
||||
@ -97,7 +97,7 @@ void test_network_fetchlocal__prune(void)
|
||||
cl_git_pass(git_reference_delete(ref));
|
||||
git_reference_free(ref);
|
||||
|
||||
cl_git_pass(git_remote_load(&origin, repo, GIT_REMOTE_ORIGIN));
|
||||
cl_git_pass(git_remote_lookup(&origin, repo, GIT_REMOTE_ORIGIN));
|
||||
git_remote_set_callbacks(origin, &callbacks);
|
||||
cl_git_pass(git_remote_connect(origin, GIT_DIRECTION_FETCH));
|
||||
cl_git_pass(git_remote_download(origin, NULL));
|
||||
@ -148,7 +148,7 @@ void test_network_fetchlocal__prune_overlapping(void)
|
||||
cl_git_pass(git_config_set_multivar(config, "remote.origin.fetch", "^$", "refs/pull/*/head:refs/remotes/origin/pr/*"));
|
||||
git_config_free(config);
|
||||
|
||||
cl_git_pass(git_remote_load(&origin, repo, GIT_REMOTE_ORIGIN));
|
||||
cl_git_pass(git_remote_lookup(&origin, repo, GIT_REMOTE_ORIGIN));
|
||||
git_remote_set_callbacks(origin, &callbacks);
|
||||
cl_git_pass(git_remote_connect(origin, GIT_DIRECTION_FETCH));
|
||||
cl_git_pass(git_remote_download(origin, NULL));
|
||||
@ -164,7 +164,7 @@ void test_network_fetchlocal__prune_overlapping(void)
|
||||
cl_git_pass(git_config_set_multivar(config, "remote.origin.fetch", "^$", "refs/pull/*/head:refs/remotes/origin/pr/*"));
|
||||
cl_git_pass(git_config_set_multivar(config, "remote.origin.fetch", "^$", "refs/heads/*:refs/remotes/origin/*"));
|
||||
|
||||
cl_git_pass(git_remote_load(&origin, repo, GIT_REMOTE_ORIGIN));
|
||||
cl_git_pass(git_remote_lookup(&origin, repo, GIT_REMOTE_ORIGIN));
|
||||
git_remote_set_callbacks(origin, &callbacks);
|
||||
cl_git_pass(git_remote_connect(origin, GIT_DIRECTION_FETCH));
|
||||
cl_git_pass(git_remote_download(origin, NULL));
|
||||
@ -209,7 +209,7 @@ void test_network_fetchlocal__fetchprune(void)
|
||||
cl_git_pass(git_reference_delete(ref));
|
||||
git_reference_free(ref);
|
||||
|
||||
cl_git_pass(git_remote_load(&origin, repo, GIT_REMOTE_ORIGIN));
|
||||
cl_git_pass(git_remote_lookup(&origin, repo, GIT_REMOTE_ORIGIN));
|
||||
git_remote_set_prune_refs(origin, 1);
|
||||
git_remote_set_callbacks(origin, &callbacks);
|
||||
cl_git_pass(git_remote_fetch(origin, NULL, NULL, NULL));
|
||||
@ -226,7 +226,7 @@ void test_network_fetchlocal__fetchprune(void)
|
||||
cl_git_pass(git_repository_config(&config, repo));
|
||||
cl_git_pass(git_config_set_bool(config, "remote.origin.prune", 1));
|
||||
git_config_free(config);
|
||||
cl_git_pass(git_remote_load(&origin, repo, GIT_REMOTE_ORIGIN));
|
||||
cl_git_pass(git_remote_lookup(&origin, repo, GIT_REMOTE_ORIGIN));
|
||||
cl_assert_equal_i(1, git_remote_prune_refs(origin));
|
||||
git_remote_set_callbacks(origin, &callbacks);
|
||||
cl_git_pass(git_remote_fetch(origin, NULL, NULL, NULL));
|
||||
|
Loading…
Reference in New Issue
Block a user