about summary refs log tree commit homepage
path: root/lib/PublicInbox/SolverGit.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2022-07-30 09:38:24 +0000
committerEric Wong <e@80x24.org>2022-07-30 09:39:34 +0000
commit37939c45e9eee222dd8ec35c941271b87bd02885 (patch)
tree75c3bb924d690a7ed1b71738a8ee71dd61c0f742 /lib/PublicInbox/SolverGit.pm
parent706bbdf50141cfffe8c411afba4c7cd4112fbc7a (diff)
downloadpublic-inbox-37939c45e9eee222dd8ec35c941271b87bd02885.tar.gz
git deprecated core.fsyncObjectFiles in favor of core.fsync
with 2.36.0+, while GIT_TEST_FSYNC was added in 2.35.0.  So
use the environment variable since it's been supported slightly
longer than the new configuration knob.
Diffstat (limited to 'lib/PublicInbox/SolverGit.pm')
-rw-r--r--lib/PublicInbox/SolverGit.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/SolverGit.pm b/lib/PublicInbox/SolverGit.pm
index 62b5a343..d3567aa2 100644
--- a/lib/PublicInbox/SolverGit.pm
+++ b/lib/PublicInbox/SolverGit.pm
@@ -1,4 +1,4 @@
-# Copyright (C) 2019-2021 all contributors <meta@public-inbox.org>
+# Copyright (C) all contributors <meta@public-inbox.org>
 # License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
 
 # "Solve" blobs which don't exist in git code repositories by
@@ -301,7 +301,6 @@ sub do_git_init ($) {
         repositoryFormatVersion = $v
         filemode = true
         bare = false
-        fsyncObjectfiles = false
         logAllRefUpdates = false
 EOF
         print $fh <<EOM if defined($$fmt);
@@ -325,6 +324,7 @@ EOM
         $self->{git_env} = {
                 GIT_DIR => $git_dir,
                 GIT_INDEX_FILE => "$git_dir/index",
+                GIT_TEST_FSYNC => 0, # undocumented git env
         };
         prepare_index($self);
 }