From 6ca8f8d03fa8ee93edc8299f53d624f5d5841408 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 30 May 2018 02:54:48 +0000 Subject: respect umask if core.sharedRepository is not set 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 <38873789-ab42-65a1-20c9-12c30b171f4f@linuxfoundation.org> --- t/v2writable.t | 1 + 1 file changed, 1 insertion(+) (limited to 't/v2writable.t') diff --git a/t/v2writable.t b/t/v2writable.t index 00b08e03..9e3bb755 100644 --- a/t/v2writable.t +++ b/t/v2writable.t @@ -11,6 +11,7 @@ foreach my $mod (qw(DBD::SQLite Search::Xapian)) { plan skip_all => "$mod missing for nntpd.t" if $@; } use_ok 'PublicInbox::V2Writable'; +umask 007; my $mainrepo = tempdir('pi-v2writable-XXXXXX', TMPDIR => 1, CLEANUP => 1); my $ibx = { mainrepo => $mainrepo, -- cgit v1.2.3-24-ge0c7