mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-06 14:57:58 +00:00
Cleanup after testing remote prune.
This commit is contained in:
parent
82eeba8142
commit
93d968fa07
@ -124,14 +124,13 @@ void test_network_fetchlocal__prune_overlapping(void)
|
||||
git_config *config;
|
||||
|
||||
git_repository *remote_repo = cl_git_sandbox_init("testrepo.git");
|
||||
const char *url = cl_git_path_url(git_repository_path(remote_repo));
|
||||
git_remote_callbacks callbacks = GIT_REMOTE_CALLBACKS_INIT;
|
||||
|
||||
cl_git_pass(git_revparse_single(&obj, remote_repo, "master"));
|
||||
cl_git_pass(git_reference_create(&ref, remote_repo, "refs/pull/42/head", git_object_id(obj), 1, NULL, NULL));
|
||||
git_object_free(obj);
|
||||
|
||||
const char *url = cl_git_path_url(git_repository_path(remote_repo));
|
||||
git_remote_callbacks callbacks = GIT_REMOTE_CALLBACKS_INIT;
|
||||
|
||||
callbacks.transfer_progress = transfer_cb;
|
||||
callbacks.payload = &callcount;
|
||||
|
||||
@ -175,6 +174,10 @@ void test_network_fetchlocal__prune_overlapping(void)
|
||||
cl_git_pass(git_revparse_single(&obj, repo, "origin/pr/42"));
|
||||
cl_git_pass(git_reference_list(&refnames, repo));
|
||||
cl_assert_equal_i(20, (int)refnames.count);
|
||||
|
||||
cl_git_pass(git_reference_delete(ref));
|
||||
git_repository_free(remote_repo);
|
||||
git_repository_free(repo);
|
||||
}
|
||||
|
||||
void test_network_fetchlocal__fetchprune(void)
|
||||
|
Loading…
Reference in New Issue
Block a user