File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -531,7 +531,7 @@ int git_repository_open_ext(
531
531
532
532
if (config &&
533
533
((error = load_config_data (repo , config )) < 0 ||
534
- (error = load_workdir (repo , config , & parent ))) < 0 )
534
+ (error = load_workdir (repo , config , & parent )) < 0 ) )
535
535
goto cleanup ;
536
536
}
537
537
Original file line number Diff line number Diff line change @@ -22,17 +22,17 @@ void test_repo_open__bare_empty_repo(void)
22
22
23
23
void test_repo_open__format_version_1 (void )
24
24
{
25
- git_buf path = GIT_BUF_INIT ;
26
25
git_repository * repo ;
27
26
git_config * config ;
28
27
29
28
repo = cl_git_sandbox_init ("empty_bare.git" );
30
29
31
30
cl_git_pass (git_repository_open (& repo , "empty_bare.git" ));
32
- cl_git_pass (git_repository_config__weakptr (& config , repo ));
31
+ cl_git_pass (git_repository_config (& config , repo ));
33
32
34
33
cl_git_pass (git_config_set_int32 (config , "core.repositoryformatversion" , 1 ));
35
34
35
+ git_config_free (config );
36
36
git_repository_free (repo );
37
37
cl_git_fail (git_repository_open (& repo , "empty_bare.git" ));
38
38
}
You can’t perform that action at this time.
0 commit comments