Gitblit推送错误 "error: RPC failed; result=52, HTTP code = 0"

7

我在我的 Mac OS X 10.8 上安装了 Gitblit,但是一直无法推送!

在 Gitblit 网页界面中,我创建了一个名为 empty 的空仓库,并通过以下命令将其克隆到本地存储中:

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 = 

非常感谢您的帮助!

2个回答

1
我刚刚通过将Git版本更新到最新版本(2.1.2)来解决了我的问题。

0
这可能有点晚了,但我刚遇到了这个问题,未来的用户可能会发现这很有帮助。
我们在工作中设置了自己的git服务器,但忘记为组添加远程存储库的写权限。
使用chmod添加组写权限就解决了问题。

有趣。有一个开放问题来支持相当于git init --bare --shared的功能,这可能会预先解决这个问题。 - James Moger

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接