我已经rpm
在 centos6 ie中安装了 gitolite,安装gitolite-2.3.1-1.el6.noarch.rpm
后rpm
我运行了gl-setup
.
我正在尝试通过 http 访问 repo。当我尝试克隆 git clonehttp://server.name/git/gitoliteadmin.git
它给出错误:
FATAL: '/var/opt/jet/gitolite/.gitolite.rc' seems to be for older gitolite; please see doc/g2migr.mkd
(online at http://gitolite.com/gitolite/g2migr.html)
Premature end of script headers: gitolite-shell
下面是我的htpd.conf
配置
<VirtualHost 10.111.123.17:80>
ServerName server.name
LogLevel Debug
SetEnv GIT_HTTP_EXPORT_ALL
SetEnv GITOLITE_HTTP_HOME /var/opt/gitolite
SetEnv GIT_PROJECT_ROOT /var/opt/gitolite/repositories
SetEnv REMOTE_USER=$REDIRECT_REMOTE_USER
ScriptAlias /git/ /opt/git_install/gitolite-master/src/gitolite-shell/
SetEnv /usr/libexec/git-core/git-http-backend
<Location /git>
AuthType Basic
AuthName "Git CLone"
AuthBasicProvider ldap
AuthzLDAPAuthoritative on
Require valid-user
Order allow,deny
Allow from all
</Location>
<LocationMatch "^/git/.*/git-receive-pack$">
Order deny,allow
Deny from All
AuthName "GIT Repo"
AuthType Basic
AuthBasicProvider ldap
AuthzLDAPAuthoritative On
Require valid-user
</LocationMatch>
</VirtualHost>
不知道出了什么问题。此外,在rpm
安装时,gitolite-shell
它不是rpm
包的一部分。
所以我从sitaramc 下载了zip 文件并添加了gitolite-shell 路径。
我错过了什么?