2012-12-15 67 views
7

在我的Mac OS X 10.8上设置gitlbit,但仍然无法推送!Gitblit推送错误“错误:RPC失败;结果= 52,HTTP代码= 0”

在Gitblit网络界面,我创建称为空的空存储库,并通过以下命令它克隆到本地存储:

git clone https://localhost:8443/git/test/empty.git 

我添加了一个文件并提交变化并增加了一个远程

git remote add gitblit https://localhost:8443/git/test/empty.git 

然后我试图推动与:

git push -v gitblit master 

和错误显示:

Pushing to https://localhost:8443/git/test/empty.git 
Counting objects: 3, done. 
Writing objects: 100% (3/3), 215 bytes, done. 
Total 3 (delta 0), reused 0 (delta 0) 
POST git-receive-pack (351 bytes) 
error: RPC failed; result=52, HTTP code = 0 
fatal: The remote end hung up unexpectedly 
fatal: The remote end hung up unexpectedly 
Everything up-to-date 

我尝试了SSL和缓冲区设置,但没有帮助。

git config http.postBuffer 524288000 
git config http.sslVerify false 
git config --global http.postBuffer 524288000 
config --global --bool --add http.sslVerify false 

我Gitblit绑定的设置都设置为空白接受结合所有接口:

server.httpBindInterface = 
server.httpsBindInterface = 
server.ajpBindInterface = 

任何帮助,将不胜感激!

回答

0

这很晚了,但我自己也遇到了这个问题,未来的用户可能会觉得这很有帮助。

我的团队正在设置我们自己的git服务器,但忘记为组的远程存储库添加写入权限。

使用chmod添加组写入权限有窍门。

+0

有趣。有一个悬而未决的问题来支持git init --bare --shared的等价物,它可能会先发制人地解决这个问题。 –

1

我刚刚解决了我的问题,更新git版本到最新(2.1.2)

相关问题