mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-29 19:04:05 +00:00
Fix repository_config
call in network::remotes
This commit is contained in:
parent
19d869bb2e
commit
468d0d1e1e
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user