执行repo init或git clone时报错:protocol error: bad line length 或协议错误:错误的行长度
系统版本:Ubuntu20.04
repo version v2.47
repo launcher version 2.45
git version 2.25.1
报错信息
fatal: 协议错误:错误的行长度 948
fatal: 远端意外挂断了
repo: error: "git" failed with exit status 128
cwd: /aosp/pvt1/yangbinbin/11/.repo/repo.tmp
cmd: ['git', 'fetch', '--quiet', '--progress', 'origin', '+refs/heads/*:refs/remotes/origin/*', '+refs/tags/*:refs/tags/*']
fatal: double check your --repo-rev setting.
fatal: cloning the git-repo repository failed, will remove '.repo/repo'
排查思路及解决方案
1. 同样的命令换台机器正常,说明问题出现在这台机器上
2. 切换帐号,同样的命令也可以正常执行,说明问题出现
本站资源均来自互联网,仅供研究学习,禁止违法使用和商用,产生法律纠纷本站概不负责!如果侵犯了您的权益请与我们联系!
转载请注明出处: 免费源码网-免费的源码资源网站 » git clone或repo init 时报错:fatal: 协议错误:错误的行长度 xxx
发表评论 取消回复