I follow this step by ste configuration : http://sitaramc.github.com/gitolite/ggshb.html
but when I'll try to make a git clone I've got this erros :
git clone http://[email protected]/gitolite-admin
Initialized empty Git repository in /home/guidtz/tmp/tmp/gitolite-admin/.git/
Password:
fatal: http://[email protected]/gitolite-admin/info/refs not found: did you run git update-server-info on the server?
I done git update-server-info.
I put http config in repos/config :
[http]
receivepack = true
info/refs file exist
My apache vhost :
<VirtualHost *:80>
ServerName git.domain.net
ServerAdmin [email protected]
LogLevel debug
ErrorLog "|/usr/bin/cronolog /var/log/apache2/git/%Y/%W/%d-error.log"
CustomLog "|/usr/bin/cronolog /var/log/apache2/git/%Y/%W/%d-access.log" combined
DocumentRoot /var/www/gitweb
SuexecUserGroup gitolite gitolite
SetEnv GIT_PROJECT_ROOT /home/git/repositories
SetEnv GIT_HTTP_EXPORT_ALL
SetEnv GITOLITE_HTTP_HOME /home/git
ScriptAliasMatch "(?x)^/(.*/(HEAD | info/refs | objects/(info/[^/]+ | [0-9a-f]{2}/[0-9a-f]{38} | pack/pack-[0-9a-f]{40}\.(pack|idx)) | git-(upload|receive)-pack))$" /var/www/bin/gitolite-suexec-wrapper.sh/$1
<Directory "/var/www/gitweb">
Options ExecCGI
AllowOverride None
AddHandler cgi-script .cgi
DirectoryIndex gitweb.cgi
Order allow,deny
Allow from all
</Directory>
<Directory "/var/www/bin">
<Files "gitolite-suexec-wrapper.sh">
Order allow,deny
Allow from all
</Files>
</Directory>
<Location / >
AuthType Basic
AuthName "Private Git Access"
AuthUserFile /etc/apache2/gitusers
Require valid-user
</Location>
</VirtualHost>
My wrapper file /var/www/bin/gitolite-suexec-wrapper.sh
#!/bin/bash
#
# Wrapper for gl-auth-command
#
USER=$1
export GIT_PROJECT_ROOT="/home/git/repositories"
export GITOLITE_HTTP_HOME="/home/git"
exec /home/git/bin/gl-auth-command $USER
# End
I found my error, I forget / in
Directory "/var/www/bin">
and I had to add an empty file git-daemon-export-ok
So that when I push. Gitolite removes git-daemon-export-ok only in the gitolite-admin project not in all the others.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With