I'm getting the following error in my /var/log/apache2/error.log
when I try to do a git clone to my server running gitolite with smart-http enabled
[Wed Jul 25 21:53:36 2012] [error] [client 124.149.104.106] FATAL: warn\tUse of
uninitialized value $rc{"UMASK"} in umask at /opt/git/gitolite-source/src/
gitolite-shell line 95, <DATA> line 1.<<newline>>
I do have the UMASK
value set to 0027
in /home/git/.gitolite.rc
Any thoughts why the value isn't setting when called from an su_exec from a file in sites-available
?
I'm running apache as www-data - and have set up permissions on the various scripts as per the instructions here - ie:
install -d -m 0755 -o git -g git /var/www/bin
install -d -m 0755 -o www -g www /var/www/git
and then:
create a shell script inside /var/www/bin
named gitolite-suexec-wrapper.sh
, with mode 0700
and owned by user and group git
.
Ok got it - basically I reinstalled starting from scratch:
/home/git
directory and running the setup as thegit
user usingsu - git
)/home/git/repositories
Put the following into the apache site configuration here
/etc/apache2/sites-available/git.servername.com
Use the styles for gitweb from here.
Now I can access my site via ssh using
git clone ssh://git@git.servername.com:gitolite-admin.git
http://admin@git.servername.com/git/testing.gitand view it at http://servername.com/gitweb