summaryrefslogtreecommitdiff
path: root/tests/config/rename.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/config/rename.c')
-rw-r--r--tests/config/rename.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/config/rename.c b/tests/config/rename.c
index db07c798f..d28795ab3 100644
--- a/tests/config/rename.c
+++ b/tests/config/rename.c
@@ -7,7 +7,7 @@ static git_config *g_config = NULL;
void test_config_rename__initialize(void)
{
g_repo = cl_git_sandbox_init("testrepo.git");
- cl_git_pass(git_repository_config(&g_config, g_repo));
+ cl_git_pass(git_repository_config_writable(&g_config, g_repo));
}
void test_config_rename__cleanup(void)
@@ -55,6 +55,7 @@ void test_config_rename__prevent_overwrite(void)
cl_git_pass(git_config_rename_section(
g_repo, "branch.track-local", "branch.local-track"));
+
cl_git_pass(git_config_get_entry(
&ce, g_config, "branch.local-track.remote"));
cl_assert_equal_s(".", ce->value);