2

在我的机器上,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)
4

1 回答 1

0

此类错误也在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 月)。

于 2019-08-08T16:08:12.280 回答