在我的机器上,git客户端版本是2.11.1.windows.1 服务器是Bonobo Git Server 5.2.0.0
在命令提示符下,命令显示此错误" / info / rafs无效:在尝试克隆存储库后,这是一个git存储库" 。
我去了问题部分的官方网站找到了这个
致命:http:/ info / refs无效:这是一个git存储库吗?
这是一种git客户端方式,它说它没有从服务器接收git流作为响应。这通常意味着服务器端出现了错误。
要确定它是什么类型的错误,请查看位于App_Data / Bonobo.Git.Server.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)
答案 0 :(得分:0)
Bonobo 6.x于2017年晚些时候发布(6.0、6.1或6.2,全部于2017年发布),该错误类型也报告在jakubgarfield/Bonobo-Git-Server issue 657中,不是。 。没有6.3或6.4。
您需要检查Bonobo 6.X(包括6.5)是否仍然存在此问题(2019年4月)。