summaryrefslogtreecommitdiff
path: root/tests/repo/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/repo/config.c')
-rw-r--r--tests/repo/config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/repo/config.c b/tests/repo/config.c
index 93dedd576..49d52f0ce 100644
--- a/tests/repo/config.c
+++ b/tests/repo/config.c
@@ -44,7 +44,7 @@ void test_repo_config__can_open_global_when_there_is_no_file(void)
GIT_OPT_SET_SEARCH_PATH, GIT_CONFIG_LEVEL_XDG, path.ptr));
cl_git_pass(git_repository_open(&repo, "empty_standard_repo"));
- cl_git_pass(git_repository_config(&config, repo));
+ cl_git_pass(git_repository_config_writable(&config, repo));
cl_git_pass(git_config_open_level(
&global, config, GIT_CONFIG_LEVEL_GLOBAL));
@@ -73,7 +73,7 @@ void test_repo_config__can_open_missing_global_with_separators(void)
git_buf_free(&path);
cl_git_pass(git_repository_open(&repo, "empty_standard_repo"));
- cl_git_pass(git_repository_config(&config, repo));
+ cl_git_pass(git_repository_config_writable(&config, repo));
cl_git_pass(git_config_open_level(
&global, config, GIT_CONFIG_LEVEL_GLOBAL));