报错:revision master in kernel_linux not found

拉OpenHarmony代码 repo sync 的时候报错:

Receiving objects:  17% (1112924/6319351), 518.36 MiB | 1.28 MiB/s

fatal: the remote end hung up unexpectedly 1.00 GiB | 4.47 MiB/s
fatal: early EOF
fatal: index-pack failed
kernel_linux:
remote: Enumerating objects: 6319351, done.
remote: Counting objects: 100% (4283/4283), done.
remote: Compressing objects: 100% (164/164), done.
fatal: the remote end hung up unexpectedly 1.00 GiB | 4.47 MiB/s
fatal: early EOF
fatal: index-pack failed

error: Cannot fetch kernel_linux from https://gitee.com/openharmony/kernel_linux
Fetching projects: 100% (221/221), done.
Checking out projects:  52% (116/221) interface_sdk-jserror: Cannot checkout kernel_linux: ManifestInvalidRevisionError: revision master in kernel_linux not found
error: in `sync -c`: revision master in kernel_linux not found

 

是在WSL里拉的代码。请问这个报错如何解决呢?

都是按教程走的:

https://gitee.com/openharmony/docs/blob/master/zh-cn/device-dev/get-code/%E6%BA%90%E7%A0%81%E8%8E%B7%E5%8F%96.md

获取标准系统源码(2.0 Canary)

  1. 创建并切换到OpenHarmony工作目录。

    mkdir OpenHarmony
    cd OpenHarmony
  2. repo初始化。

    repo init -u https://gitee.com/openharmony/manifest.git -b master --no-repo-verify
    # 使用此命令初始化时,可能会因为网络慢的问题导致代码更新失败,可以尝试以下命令来初始化:
    repo init -u https://gitee.com/openharmony/manifest.git -b ssh/master --no-repo-verify
  3. 更新代码。

    repo sync -c
  4. 更新二进制。

    repo forall -c 'git lfs pull'