From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.2 required=3.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 11CA31F54E for ; Sat, 30 Jul 2022 09:38:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1659173905; bh=oEOecn520w0qFUprDWWAjdEpH1TXijDYsMqAOVtnURk=; h=From:To:Subject:Date:From; b=LypvzLrZ9QGVQ3kSGVqTT1mmR6J2l2s6jMyXc7qQD8Qs8tkOcG6n8K8ij9NH6o3/U 4qhXTAVUVwEuSKTVh4+5n3dt3aZnMCswgJZJAY5slJ+463HUKCMIs/M0obImLVeCpn dJqaElR/gMmrgeKYPUXYLNkSqdlP9n0LVYjUV3fY= From: Eric Wong To: meta@public-inbox.org Subject: [PATCH] solver: avoid deprecation warnings in git 2.36.0+ Date: Sat, 30 Jul 2022 09:38:24 +0000 Message-Id: <20220730093824.19205-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: 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. --- lib/PublicInbox/SolverGit.pm | 4 ++-- 1 file 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 +# Copyright (C) all contributors # License: AGPL-3.0+ # "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 <{git_env} = { GIT_DIR => $git_dir, GIT_INDEX_FILE => "$git_dir/index", + GIT_TEST_FSYNC => 0, # undocumented git env }; prepare_index($self); }