diff options
| author | Bryce Kwon <bryce@brycekwon.com> | |
|---|---|---|
| committer | Bryce Kwon <bryce@brycekwon.com> | |
| commit | ||
| parent | ||
| tree | ||
| download | ||
Set a readable umask in the post-update hook
Diffstat (limited to 'custom/hooks/post-update.update-server-info')
| -rwxr-xr-x | custom/hooks/post-update.update-server-info | 7 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
1 file changed, 7 insertions, 0 deletions
diff --git a/custom/hooks/post-update.update-server-info b/custom/hooks/post-update.update-server-info index d499ce5..15665f9 100755 --- a/custom/hooks/post-update.update-server-info +++ b/custom/hooks/post-update.update-server-info @@ -15,4 +15,11 @@ # To install it, copy or link this file to "hooks/post-update" in each # repository and make sure it is executable. # + +set -eu + +# The pushing user's umask decides the mode of the info files this rewrites, +# so force one that leaves them readable by the web server. +umask 022 + exec git update-server-info |
