summaryrefslogtreecommitdiff
path: root/tests-clar/config/new.c
diff options
context:
space:
mode:
authorMichael Schubert <schu@schu.io>2012-10-24 15:46:15 +0200
committerMichael Schubert <schu@schu.io>2012-10-24 15:46:15 +0200
commitab2af775ec467ebb328a7374653f247920f258f3 (patch)
treedfcb09fadc67bc28a99bffcb8b751d426024974c /tests-clar/config/new.c
parent90fefe87d87b08010a1ea10ae496a4b0ee630f5e (diff)
parent6f6b0c013c6eff2aca2a7ada1027044f2e20f578 (diff)
downloadlibgit2-features/push_old.tar.gz
Merge branch 'development' into gsoc-pushfeatures/push_old
Diffstat (limited to 'tests-clar/config/new.c')
-rw-r--r--tests-clar/config/new.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/tests-clar/config/new.c b/tests-clar/config/new.c
index fae3ce941..6bd719fba 100644
--- a/tests-clar/config/new.c
+++ b/tests-clar/config/new.c
@@ -9,21 +9,16 @@
void test_config_new__write_new_config(void)
{
const char *out;
- struct git_config_file *file;
git_config *config;
- cl_git_pass(git_config_file__ondisk(&file, TEST_CONFIG));
- cl_git_pass(git_config_new(&config));
- cl_git_pass(git_config_add_file(config, file, 0));
+ cl_git_pass(git_config_open_ondisk(&config, TEST_CONFIG));
cl_git_pass(git_config_set_string(config, "color.ui", "auto"));
cl_git_pass(git_config_set_string(config, "core.editor", "ed"));
git_config_free(config);
- cl_git_pass(git_config_file__ondisk(&file, TEST_CONFIG));
- cl_git_pass(git_config_new(&config));
- cl_git_pass(git_config_add_file(config, file, 0));
+ cl_git_pass(git_config_open_ondisk(&config, TEST_CONFIG));
cl_git_pass(git_config_get_string(&out, config, "color.ui"));
cl_assert_equal_s(out, "auto");