在我的机器上,git客户端版本是2.11.1.windows.1,服务器是Bonobo Git Server 5.2.0.0
在尝试克隆存储库后,在命令提示符命令中显示此错误“/info/rafs not valid: is this a git repository” 。
我去了问题部分的官方网站并找到了这个
致命: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)