本地git服务器(Bonobo-git服务器)试图克隆存储库时出错



在我的机器上,git客户端版本是2.11.1.windows.1服务器为Bonobo Git server 5.2.0.0

在命令提示符中,命令向我显示这个错误"i"/info/rfs无效:这是一个git存储库吗 在尝试克隆存储库之后。

我去了问题部分的官方网站,找到了这个

致命:http://info/refs无效:这是git存储库吗?

这是一种git客户端的方式,表示它没有从服务器接收到git流作为响应。这通常意味着服务器端出现了错误。

要确定错误类型,请查看位于App_Data/Bonobo的日志文件。Git。服务器Errors.log.

在errors.log.txt文件中,我看到了错误:

w3wp.exe Error: 0 : Error occured and caught in Global.asax - System.ArgumentOutOfRangeException: Index and length must refer to a location within the string.
Parameter name: length
at System.String.Substring(Int32 startIndex, Int32 length)
at Bonobo.Git.Server.MvcApplication.Application_AcquireRequestState(Object sender, EventArgs e)
at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

这种类型的错误也在jakubgarfield/Bonobo Git Server第657期中报告,据推测,2017年晚些时候发布的Bonobo 6.x(6.0、6.1或6.2,均在2017年)不会发生。没有6.3或6.4。

您需要检查任何Bonobo 6.X,包括6.5(2019年4月)是否仍然存在问题。

最新更新