首页 > 解决方案 > 无法 repo init android 源代码镜像

问题描述

我正在尝试镜像 Android 源代码,但这是不可能的。我不得不将 python 升级到 3.6 并更新 repo。

但是我不能 repo init android 源镜像。

jeffrey@devserver:/home1/aosp/mirror$ repo init -u https://android.googlesource.com/mirror/manifest --mirror 从https://gerrit.googlesource.com/git-repo下载 Repo 源下载清单来自https://android.googlesource.com/mirror/manifest --exit-code', name, 'HEAD') File "/home1/aosp/mirror/.repo/repo/project.py", line 3034, in runner (self._project.name, name, p.stderr) ) error.GitError: manifests ls-remote: 用法: git ls-remote [--heads] [--tags] [--upload-pack=] [-q | --quiet] [--exit-code] [--get-url] [ [...]]

有人可以帮忙吗?

谢谢,

标签: androidinitmirrorrepo

解决方案


你的 'git ls-remote' 没有 '--symref' 参数,也许你需要更新 git 版本。


推荐阅读