]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/lei.t
lei: stricter external checks for valid $GIT_DIR/objects
[public-inbox.git] / t / lei.t
diff --git a/t/lei.t b/t/lei.t
index b10c9b59c72b8e29570b63dbf5853463a2c55cb7..a80143ef5cf6f58e3055f67e823367aacf40e803 100644 (file)
--- 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'),