From eaf3703401a64d59fd8bf2609449343d739ef056 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn=20Nieto?= Date: Mon, 31 Mar 2014 08:53:56 +0200 Subject: 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. --- tests/config/write.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/config/write.c') 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)); -- cgit v1.2.1