【问题标题】:Gitblit push error "error: RPC failed; result=52, HTTP code = 0"Gitblit 推送错误“错误:RPC 失败;结果 = 52,HTTP 代码 = 0”
【发布时间】:2012-12-03 02:18:48
【问题描述】:

在我的 Mac OS X 10.8 上设置 gitlbit,但总是无法推送!

在 Gitblit Web 界面中,我创建了一个名为 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 = 

任何帮助将不胜感激!

【问题讨论】:

    标签: git push rpc gitblit


    【解决方案1】:

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

    【讨论】:

      【解决方案2】:

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

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

      使用 chmod 添加组写入权限就可以了。

      【讨论】:

      • 有趣。有一个开放的问题来支持 git init --bare --shared 的等价物,它可以先发制人地解决这个问题。
      猜你喜欢
      • 2015-06-15
      • 2016-02-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-04-17
      • 2013-10-27
      • 1970-01-01
      相关资源
      最近更新 更多