羊羊羊1994 2021-06-20 20:09 采纳率: 0%
浏览 300

报错: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'
  • 写回答

0条回答 默认 最新

      报告相同问题?

      相关推荐 更多相似问题

      悬赏问题

      • ¥15 这幅db-RDA图是怎么画的?
      • ¥15 类文件具有错误的版本 61.0, 应为 52.0
      • ¥15 main函数里scanf_s("%c",&t)字符没办f法输入,断点调试时&t显示烫,求看看问题在哪?
      • ¥15 初学者学习xbeach 用matlab,缺失XBeach MATLAB Toolbox
      • ¥15 QEMU virt开发板无法访问CLINT空间
      • ¥20 如何将tiff格式数据作为因变量,输入已建立的机器学习模型中,得到结果同样为空间tiff格式的数据
      • ¥20 编写一个脚本监听sql的运行状态并联动另一台服务器上的服务重启
      • ¥215 一年前的硬盘数据恢复
      • ¥15 htmclxx 求提供给64位windows预编译库
      • ¥15 如何用线性表实现通讯录管理功能,根据条件输出对应分类的信息