Gitolite错误.gitolite.rc'似乎是旧的gitolite;请参阅doc / g2migr.mkd [英] Gitolite error .gitolite.rc' seems to be for older gitolite; please see doc/g2migr.mkd

查看:221
本文介绍了Gitolite错误.gitolite.rc'似乎是旧的gitolite;请参阅doc / g2migr.mkd的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在centos6中使用 rpm 来安装gitolite,即 gitolite-2.3.1-1.el6.noarch.rpm 和之后 rpm 安装我已经运行 gl-setup

我正在尝试通过http访问repo。当我尝试克隆git clone http://server.name/git/gitoliteadmin.git 时,它会给出错误:

I have installed gitolite using rpm in centos6 ie gitolite-2.3.1-1.el6.noarch.rpm and after rpm installation I have run the gl-setup.
I am trying to access repo over http. When I try to clone git clone http://server.name/git/gitoliteadmin.git it gives error:

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 package。

所以我从sitaramc下载了zip文件并添加了gitolite-shell路径。

Not sure what is wrong. Also while rpm installation the gitolite-shell was not part of rpm package.
So I downloaded the zip file from sitaramc and added the gitolite-shell path.

我错过了什么?

推荐答案

您已经通过rpm安装了旧版gitolite:V2而不是更成熟的V3(其中包括 gitolite-shell )。

You have installed through rpm an old version of gitolite: a V2 instead of the more mature V3 (which includes gitolite-shell).

我会建议通过克隆GitHub回购安装gitolite

I would recommend installing gitolite by cloning the GitHub repo

git clone git://github.com/sitaramc/gitolite

安装文档 for Gitolite V3。

然后按照git gitolite设置

And following the installation documentation for Gitolite V3.
And then follow git gitolite setup:

gitolite setup -pk alice.pub

(这是以前的<$ c的新形式$ c> gl-setup 在gitolite V2中)

(that is the new form of what used to be gl-setup in gitolite V2)

这篇关于Gitolite错误.gitolite.rc'似乎是旧的gitolite;请参阅doc / g2migr.mkd的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆