summaryrefslogtreecommitdiff
path: root/tests/pack/packbuilder.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2017-06-08 21:40:18 +0200
committerPatrick Steinhardt <ps@pks.im>2017-06-08 21:40:18 +0200
commit6c23704df5d19239f8c3d6f69da62bdbe1cf287d (patch)
tree8bb883b7d787d5e28d2f68c08b22dc311d0e258e /tests/pack/packbuilder.c
parent458cea5c5b820f9766cb5ba4c3d89830592d655b (diff)
downloadlibgit2-6c23704df5d19239f8c3d6f69da62bdbe1cf287d.tar.gz
settings: rename `GIT_OPT_ENABLE_SYNCHRONOUS_OBJECT_CREATION`
Initially, the setting has been solely used to enable the use of `fsync()` when creating objects. Since then, the use has been extended to also cover references and index files. As the option is not yet part of any release, we can still correct this by renaming the option to something more sensible, indicating not only correlation to objects. This commit renames the option to `GIT_OPT_ENABLE_FSYNC_GITDIR`. We also move the variable from the object to repository source code.
Diffstat (limited to 'tests/pack/packbuilder.c')
-rw-r--r--tests/pack/packbuilder.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/pack/packbuilder.c b/tests/pack/packbuilder.c
index 1d7becef7..9bea203d5 100644
--- a/tests/pack/packbuilder.c
+++ b/tests/pack/packbuilder.c
@@ -31,7 +31,7 @@ void test_pack_packbuilder__cleanup(void)
git_oid *o;
unsigned int i;
- cl_git_pass(git_libgit2_opts(GIT_OPT_ENABLE_SYNCHRONOUS_OBJECT_CREATION, 0));
+ cl_git_pass(git_libgit2_opts(GIT_OPT_ENABLE_FSYNC_GITDIR, 0));
if (_commits_is_initialized) {
_commits_is_initialized = 0;
@@ -209,7 +209,7 @@ static int expected_fsyncs = 4;
void test_pack_packbuilder__fsync_global_setting(void)
{
- cl_git_pass(git_libgit2_opts(GIT_OPT_ENABLE_SYNCHRONOUS_OBJECT_CREATION, 1));
+ cl_git_pass(git_libgit2_opts(GIT_OPT_ENABLE_FSYNC_GITDIR, 1));
p_fsync__cnt = 0;
seed_packbuilder();
git_packbuilder_write(_packbuilder, ".", 0666, NULL, NULL);