diff options
author | Eric Wong <e@80x24.org> | 2018-05-30 02:54:48 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2018-05-30 20:34:23 +0000 |
commit | 6ca8f8d03fa8ee93edc8299f53d624f5d5841408 (patch) | |
tree | 762802e0818b5a4beac41bd2b12b432e73987907 /t/search.t | |
parent | c339a14b11c57e7b330f4efef6903bcbea2b3463 (diff) | |
download | public-inbox-6ca8f8d03fa8ee93edc8299f53d624f5d5841408.tar.gz |
This is consistent with git itself and the previous behavior was a result of misunderstanding of how git interprets this. And adjust tests slightly to match the new behavior. Reported-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org> <38873789-ab42-65a1-20c9-12c30b171f4f@linuxfoundation.org>
Diffstat (limited to 't/search.t')
-rw-r--r-- | t/search.t | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -11,7 +11,7 @@ my $tmpdir = tempdir('pi-search-XXXXXX', TMPDIR => 1, CLEANUP => 1); my $git_dir = "$tmpdir/a.git"; my ($root_id, $last_id); -is(0, system(qw(git init -q --bare), $git_dir), "git init (main)"); +is(0, system(qw(git init --shared -q --bare), $git_dir), "git init (main)"); eval { PublicInbox::Search->new($git_dir) }; ok($@, "exception raised on non-existent DB"); @@ -422,11 +422,12 @@ $ibx->with_umask(sub { }); foreach my $f ("$git_dir/public-inbox/msgmap.sqlite3", + "$git_dir/public-inbox", glob("$git_dir/public-inbox/xapian*/"), glob("$git_dir/public-inbox/xapian*/*")) { my @st = stat($f); my ($bn) = (split(m!/!, $f))[-1]; - is($st[2] & 07777, -f _ ? 0660 : 0770, + is($st[2] & 07777, -f _ ? 0660 : 02770, "sharedRepository respected for $bn"); } |