Gitolite git克隆错误 [英] Gitolite git clone error

查看:312
本文介绍了Gitolite git克隆错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试在我的服务器上安装gitolite(Macos服务器)。

我遵循INSTALL文档中的说明:
http://sitaramc.github.com/gitolite/doc/1-INSTALL.html

我安装了根方法。



我得到了一切设置(ssh pubkey认证和默认gitolite设置)

  $ ssh git @ server info 
hello admin,这里的gitolite版本是v1.5.9.1-27- gb97115f
gitolite配置为您提供以下访问:
RW gitolite-admin
@R_ @W_ testing

根据安装说明,我应该可以检出一个存储库。



但是当我尝试克隆gitolite-admin存储库时,得到一个错误:

  
$ git clone git @ server:gitolite-admin
克隆到gitolite- admin ...
声明失败:(argv0
错误:git-shell死于信号6
致命:远程端意外挂起



我得到了最新的git版gitolite和git v。1.7.3.4

任何人都可以帮助我吗?
$ b $编辑1:在错误消息之前添加git clone命令

解决方案

看来这个错误的正确解决方法是添加
$ b $ pre $ GIT_EXEC_PATH =/ usr / libexec / git的核心;

添加到您的.gitolite.rc文件中。


I am trying to setup gitolite on my server (Macos server).

I followed the instructions in the INSTALL document found here : http://sitaramc.github.com/gitolite/doc/1-INSTALL.html

I installed the root method.

I got everything setup (ssh pubkey authentication and default gitolite setup)

$ssh git@server info
hello admin, the gitolite version here is v1.5.9.1-27-gb97115f
the gitolite config gives you the following access:
     R   W  gitolite-admin
    @R_ @W_ testing

According to installation instruction I should be able to checkout a repository.

But when I try to clone the gitolite-admin repositry I get an error:


$ git clone git@server:gitolite-admin
Cloning into gitolite-admin...
Assertion failed: (argv0_path), function system_path, file exec_cmd.c, line 27.
error: git-shell died of signal 6
fatal: The remote end hung up unexpectedly

I got the latest git version of gitolite and git v. 1.7.3.4

Can anybody help me?

Edit 1: added git clone command before error message

解决方案

It seems the correct fix to this error is to add

$ENV{GIT_EXEC_PATH} = "/usr/libexec/git-core";

to your .gitolite.rc file.

这篇关于Gitolite git克隆错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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