about summary refs log tree commit homepage
path: root/t/lei.t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2022-12-01 11:21:31 +0000
committerEric Wong <e@80x24.org>2022-12-02 08:07:40 +0000
commit3f7bd6ba4d30f16ef95af9121ad8fe7b47a4f5f7 (patch)
treef2005b749a203fbc5da61bd2ed99b77d6de76518 /t/lei.t
parenteb22c4833d455b655b42b492dfad7f2abfc83203 (diff)
downloadpublic-inbox-3f7bd6ba4d30f16ef95af9121ad8fe7b47a4f5f7.tar.gz
I ended up with my $HOME in
~/.cache/lei/all_locals_ever.git/objects/info/alterntes
and am trying to avoid that in the future.
Diffstat (limited to 't/lei.t')
-rw-r--r--t/lei.t3
1 files changed, 2 insertions, 1 deletions
diff --git a/t/lei.t b/t/lei.t
index b10c9b59..a80143ef 100644
--- a/t/lei.t
+++ b/t/lei.t
@@ -148,7 +148,8 @@ my $test_fail = sub {
 
         for my $lk (qw(ei inbox)) {
                 my $d = "$home/newline\n$lk";
-                mkdir $d;
+                my $all = $lk eq 'ei' ? 'ALL' : 'all';
+                File::Path::mkpath("$d/$all.git/objects");
                 open my $fh, '>', "$d/$lk.lock" or BAIL_OUT "open $d/$lk.lock";
                 for my $fl (qw(-I --only)) {
                         ok(!lei('q', $fl, $d, 'whatever'),