Fix repository_config call in network::remotes

This commit is contained in:
Vicent Marti 2011-09-19 06:32:56 +03:00
parent 19d869bb2e
commit 468d0d1e1e

View File

@ -11,7 +11,7 @@ void test_network_remotes__initialize(void)
{ {
cl_fixture_sandbox(REPOSITORY_FOLDER); cl_fixture_sandbox(REPOSITORY_FOLDER);
cl_git_pass(git_repository_open(&repo, REPOSITORY_FOLDER)); cl_git_pass(git_repository_open(&repo, REPOSITORY_FOLDER));
cl_git_pass(git_repository_config(&cfg, repo, NULL, NULL)); cl_git_pass(git_repository_config(&cfg, repo, NULL));
cl_git_pass(git_remote_get(&remote, cfg, "test")); cl_git_pass(git_remote_get(&remote, cfg, "test"));
refspec = git_remote_fetchspec(remote); refspec = git_remote_fetchspec(remote);
cl_assert(refspec != NULL); cl_assert(refspec != NULL);