diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xcustom/hooks/post-update.update-server-info7
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