【问题标题】:Disconnecting: Protocol error: expected packet type 31, got 94断开连接:协议错误:预期数据包类型 31,得到 94
【发布时间】:2015-04-22 07:02:28
【问题描述】:

当我们尝试通过 ssh 克隆大小为 65+GB 的音频存储库时,我们会低于 Error 。请问有什么建议吗?

我们可以使用 file:// 协议进行克隆,并且 repo 健康很好......

git clone ssh://server-gerrit/project_Q2/audio 克隆到“音频”... X11 转发请求在通道 0 上失败 远程:计数对象:23944,完成 远程:查找来源:100% (23944/23944) 断开连接:协议错误:预期数据包类型 31,得到 94
致命:远端意外挂断 致命:早期EOF 致命:索引包失败

【问题讨论】:

    标签: git ssh


    【解决方案1】:

    This issue 提出以下解决方法,使用浅层克隆:

    解决方法 Git 1.8+:

    #find the highest N that will work
    git clone --depth N  ssh://git@stashhost:7999/stash/stash.git
    git fetch --unshallow
    

    由于它不起作用,我提到了in the comments bundle technique,它允许incremental bundles

    OP 补充说:

    我们拆分 repo 并以这种方式管理它。

    【讨论】:

    猜你喜欢
    • 2012-12-25
    • 2015-05-27
    • 2017-01-17
    • 2018-11-12
    • 2019-06-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多