diff options
author | Justin Spahr-Summers <Justin.SpahrSummers@gmail.com> | 2012-11-05 10:58:08 -0800 |
---|---|---|
committer | Justin Spahr-Summers <Justin.SpahrSummers@gmail.com> | 2012-11-05 10:58:13 -0800 |
commit | 6edefa149126955dbdf1c866ef5b2ec85be5031a (patch) | |
tree | c80e9ce6d3a535ec5fc908a707933c35ac5c9506 | |
parent | f358ec143c8c9952227d31cd21c24f8c9be23d3c (diff) | |
download | libgit2-6edefa149126955dbdf1c866ef5b2ec85be5031a.tar.gz |
Revert "Don't expect the 'empty-remote-url' remote to be listed"
Apparently git_remote_list() includes even remotes for which git_remote_load() would fail. Sorry @nulltoken, false alarm.
This reverts commit f358ec143c8c9952227d31cd21c24f8c9be23d3c.
-rw-r--r-- | tests-clar/network/remotes.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests-clar/network/remotes.c b/tests-clar/network/remotes.c index 481dece5c..1d58aba75 100644 --- a/tests-clar/network/remotes.c +++ b/tests-clar/network/remotes.c @@ -183,13 +183,13 @@ void test_network_remotes__list(void) git_config *cfg; cl_git_pass(git_remote_list(&list, _repo)); - cl_assert(list.count == 3); + cl_assert(list.count == 4); git_strarray_free(&list); 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_remote_list(&list, _repo)); - cl_assert(list.count == 4); + cl_assert(list.count == 5); git_strarray_free(&list); git_config_free(cfg); |