mirror of
https://git.proxmox.com/git/libgit2
synced 2025-06-21 10:24:35 +00:00
Don't expect the 'empty-remote-url' remote to be listed
CC @nulltoken
This commit is contained in:
parent
1fe99aeea3
commit
f358ec143c
@ -183,13 +183,13 @@ void test_network_remotes__list(void)
|
|||||||
git_config *cfg;
|
git_config *cfg;
|
||||||
|
|
||||||
cl_git_pass(git_remote_list(&list, _repo));
|
cl_git_pass(git_remote_list(&list, _repo));
|
||||||
cl_assert(list.count == 4);
|
cl_assert(list.count == 3);
|
||||||
git_strarray_free(&list);
|
git_strarray_free(&list);
|
||||||
|
|
||||||
cl_git_pass(git_repository_config(&cfg, _repo));
|
cl_git_pass(git_repository_config(&cfg, _repo));
|
||||||
cl_git_pass(git_config_set_string(cfg, "remote.specless.url", "http://example.com"));
|
cl_git_pass(git_config_set_string(cfg, "remote.specless.url", "http://example.com"));
|
||||||
cl_git_pass(git_remote_list(&list, _repo));
|
cl_git_pass(git_remote_list(&list, _repo));
|
||||||
cl_assert(list.count == 5);
|
cl_assert(list.count == 4);
|
||||||
git_strarray_free(&list);
|
git_strarray_free(&list);
|
||||||
|
|
||||||
git_config_free(cfg);
|
git_config_free(cfg);
|
||||||
|
Loading…
Reference in New Issue
Block a user