summaryrefslogtreecommitdiff
path: root/tests/config/write.c
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2014-03-31 08:53:56 +0200
committerCarlos Martín Nieto <cmn@dwim.me>2014-04-18 16:07:33 +0200
commiteaf3703401a64d59fd8bf2609449343d739ef056 (patch)
tree726f551378188509ec157ebf3887ed5ff81cbb2c /tests/config/write.c
parent0500a1ef4e61449a7ad375c1f42d3bd25a4e36bd (diff)
downloadlibgit2-eaf3703401a64d59fd8bf2609449343d739ef056.tar.gz
config: refresh the values on write
When writing out, parse the resulting file instead of adding or replacing the value locally. This has the effect of reading external changes as well.
Diffstat (limited to 'tests/config/write.c')
-rw-r--r--tests/config/write.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/config/write.c b/tests/config/write.c
index f269c9571..402be9317 100644
--- a/tests/config/write.c
+++ b/tests/config/write.c
@@ -322,7 +322,7 @@ void test_config_write__outside_change(void)
cl_git_pass(git_config_set_int32(cfg, "new.value", 7));
cl_git_pass(git_config_get_int32(&tmp, cfg, "old.value"));
- cl_assert_equal_i(5, tmp);
+ cl_assert_equal_i(6, tmp);
cl_git_pass(git_config_refresh(cfg));