我使用的是 Bonobo Git 服务器,一切看起来都很好。我将我所有的旧 SVN repo 移动到 GIT,甚至使用 +760 的大 repo (大约 3.5 GB)提交“git svn clone”和“git push”工作得很好。
但对于小型存储库则不然:它只有 3Mb(未压缩)和 1 次提交。 我总是收到的消息是:
efrror: RPC Failed; result=22, HTTP code = 404
fatal: The remote end hung up unexpectedly
我已经按照推荐更改了 bonobo webconfig here我已经做了 this config command .
那么,有人有任何其他线索吗?
最佳答案
基于 http://gisgeek.blogspot.com/2012/03/bonobo-git-server-remote-end-hung-up.html .
这是解决方案
解决方法: 修改 Bonobo.Git.Server 根目录 (C:\initpub\wwwroot\Bonobo.Git.Server\Web.config) 中的 web.config 文件,并在以下行中增加限制:
<system.web>
<httpRuntime maxRequestLength="102400" />
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="102400" />
在这两种情况下,“102400”都被替换为“999999999”,推送成功了!
关于git - RPC 失败结果 22 http 代码 404,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13456025/