windows 使用 Bonobo 托管在 IIS 上的 GIT 问题
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/7152285/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Issue with GIT hosted on IIS with Bonobo
提问by Charles Ouellet
We installed Bonobo Git Server on a webserver using IIS7.
我们在使用 IIS7 的网络服务器上安装了 Bonobo Git Server。
Everything seems to work fine, we create repositories, we clone them, but when we try to push we have this error:
一切似乎都很好,我们创建了存储库,克隆了它们,但是当我们尝试推送时,出现了这个错误:
$ git push origin master
Username:
Password:
Counting objects: 3985, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (3561/3561), done.
Writing objects: 100% (3984/3984), 24.67 MiB | 7.70 MiB/s, done.
Total 3984 (delta 645), reused 0 (delta 0)
fatal: protocol error: bad line length character: <!DO
fatal: The remote end hung up unexpectedly
fatal: write error: Invalid argument
It happens when we do a big commit, usually our initial commit.
它发生在我们做一个大的提交时,通常是我们的初始提交。
If I commit juste something like readme.txt it works just fine.
如果我提交诸如 readme.txt 之类的内容,它就可以正常工作。
Most of our repos are migrations from SVN, we are working with it for about 2 weeks now and everything went great until we started a new project and made a big initial commit.
我们的大部分存储库都是从 SVN 迁移的,我们现在已经使用它大约 2 周了,一切都很顺利,直到我们开始了一个新项目并进行了一次大的初始提交。
I did not manage to find anything useful by googling the error.
通过谷歌搜索错误,我没有设法找到任何有用的东西。
I also modified my git.config to this:
我还将我的 git.config 修改为:
[http]
postBuffer = 524288000
sslVerify = false
But it does not solve my issue.
但这并不能解决我的问题。
Thanks a lot,
非常感谢,
Charles
查尔斯
回答by Charles Ouellet
I found the problem...In fact it was in Bonobo Web.config file
我发现了问题...实际上它在 Bonobo Web.config 文件中
I had to add the following line:
我不得不添加以下行:
<httpRuntime maxRequestLength="2147483647" />
in the node
在节点
<system.web>