]> Sergey Matveev's repositories - public-inbox.git/commit
clone+fetch: respect umask for all downloaded files
authorEric Wong <e@80x24.org>
Thu, 14 Oct 2021 04:32:53 +0000 (04:32 +0000)
committerEric Wong <e@80x24.org>
Thu, 14 Oct 2021 09:07:15 +0000 (09:07 +0000)
commit896c59c925e61caf5d985e8531a35825eeecc99d
tree1a8605ed0c3e3822104e5f6e34136f37c16df67e
parentc8b441f4ddcb9f6cbbe54cd380fe89586d023124
clone+fetch: respect umask for all downloaded files

Since public inboxes are usually intended to be public,
the File::Temp default permission of 0600 is wrong.
Just respect the user's umask in this case as git-clone
does.

This doesn't work for "lei add-external --mirror", yet;
but it will...
lib/PublicInbox/Fetch.pm
lib/PublicInbox/LeiMirror.pm