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=-3.1 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,URIBL_BLACK shortcircuit=no autolearn=no 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 78B0A1F523; Thu, 29 Sep 2022 17:50:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1664473832; bh=Xznbf0stYxhevMwK/sbJHPMQdo1nOGjdmUUZ5TuZb8o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oZeONpJX3kHX22huUNaEpJ9I4RDJL6Rcv35YQjWxahMzxhua7aRWjU24cJZ5EJllO A35uHIIIott7acmanein1vjeoOxvjk97a//rkF2/zZdbvoK79HAdzk3fRoJ+Dh5pV+ /+FIcUK442fXm9HfIpil5KtbTCk6TJov+Jrk14fY= From: Eric Wong To: meta@public-inbox.org Cc: Konstantin Ryabitsev Subject: [PATCH 3/4] gcf2: fix syntax error and require PublicInbox::Git Date: Thu, 29 Sep 2022 17:48:30 +0000 Message-Id: <20220929174831.2919939-4-e@80x24.org> In-Reply-To: <20220929174831.2919939-1-e@80x24.org> References: <20220929174831.2919939-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: I failed to notice these since I uninstalled libgit2 for benchmarking and kept it uninstalled since my git(1) install is faster. Fixes: 1c0ec857d041 "gcf2: support worktree $GIT_DIR" --- lib/PublicInbox/Gcf2.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/PublicInbox/Gcf2.pm b/lib/PublicInbox/Gcf2.pm index 2ba2efff..5c353095 100644 --- a/lib/PublicInbox/Gcf2.pm +++ b/lib/PublicInbox/Gcf2.pm @@ -1,4 +1,4 @@ -# Copyright (C) 2020-2021 all contributors +# Copyright (C) all contributors # License: AGPL-3.0+ # backend for a git-cat-file-workalike based on libgit2, @@ -11,6 +11,8 @@ use Fcntl qw(LOCK_EX SEEK_SET); use Time::HiRes qw(clock_gettime CLOCK_MONOTONIC); use IO::Handle; # autoflush use File::Path qw(make_path); +use PublicInbox::Git; + BEGIN { my (%CFG, $c_src); # PublicInbox::Spawn will set PERL_INLINE_DIRECTORY @@ -129,7 +131,7 @@ sub loop (;$) { warn "I: $$ $oid missing, retrying in $git_dir\n"; $gcf2 = new(); - %seen = ($git_dir => add_alt($gcf2, $git_dir); + %seen = ($git_dir => add_alt($gcf2, $git_dir)); $check_at = clock_gettime(CLOCK_MONOTONIC) + $exp; if ($gcf2->cat_oid(1, $oid)) {