From 112f6fab57e0f7a38ba38d4b133c2c936fce391d Mon Sep 17 00:00:00 2001 From: Sitaram Chamarty Date: Sun, 3 Oct 2010 09:08:34 +0530 Subject: [PATCH] mirror-shell needs to honor REPO_UMASK --- src/gl-mirror-shell | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gl-mirror-shell b/src/gl-mirror-shell index 6689aef..150f132 100755 --- a/src/gl-mirror-shell +++ b/src/gl-mirror-shell @@ -4,6 +4,9 @@ export GL_BYPASS_UPDATE_HOOK GL_BYPASS_UPDATE_HOOK=1 export REPO_BASE=`cd $HOME;perl -e 'do ".gitolite.rc"; print $REPO_BASE' ` +export REPO_UMASK=`cd $HOME;perl -e 'do ".gitolite.rc"; print $REPO_UMASK' ` +umask $REPO_UMASK + if echo $SSH_ORIGINAL_COMMAND | egrep git-upload\|git-receive >/dev/null then