git clone或repo init 时报错:fatal: 协议错误:错误的行长度 xxx

执行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. 切换帐号,同样的命令也可以正常执行,说明问题出现

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值