diff options
author | Eric Wong <e@80x24.org> | 2022-09-29 17:48:30 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2022-09-29 18:05:56 +0000 |
commit | 33f2cbeeca73c35dffcbfba53a614c0516f55cdc (patch) | |
tree | 51e64dfaa80391847873e647af91c7c0054bd6a1 /lib/PublicInbox/Gcf2.pm | |
parent | d6aa79dcb15bb78f5ed6cb3c0d8d209b4e9e9064 (diff) | |
download | public-inbox-33f2cbeeca73c35dffcbfba53a614c0516f55cdc.tar.gz |
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"
Diffstat (limited to 'lib/PublicInbox/Gcf2.pm')
-rw-r--r-- | lib/PublicInbox/Gcf2.pm | 6 |
1 files 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 <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> # 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)) { |