我已經在centos6中安裝了使用rpm
的gitolite,即gitolite-2.3.1-1.el6.noarch.rpm
和rpm
安裝之後我已經運行了gl-setup
。
我想通過http訪問回購。當我嘗試克隆git的克隆http://server.name/git/gitoliteadmin.git
提示錯誤:Gitolite錯誤.gitolite.rc'似乎是舊的gitolite;請參閱doc/g2migr.mkd
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路徑。
我錯過了什麼?
感謝您的快速回復。但由於安全原因,其他站點的克隆受到限制。 – user2164525
@ user2164525這並不重要:你不必克隆。你可以下載這個檔案並解壓:https://github.com/sitaramc/gitolite/archive/v3.5.2.tar.gz – VonC
@ user2164525如果這個也被阻止了,用http:// rpmfind .net/linux/rpm2html/search.php?query = gitolite,爲了安裝gitolite 3.5.x而不是2.x – VonC