Repo (GIT) 使用镜像时如何更新清单文件?
Repo (GIT) how to update a manifest file when using a mirror?
我们使用现有清单在本地启动了一个回购协议。
repo init -u ssh://ger-repository/my_project-manifests -m my_manifest.xml --mirror
现在,清单文件已更改。 运行 初始化命令不可能:
fatal: --mirror not supported on existing client
如何在不删除所有镜像文件夹并重新同步的情况下更新清单?
这可能是不可能的,考虑到 this patch 建议将错误消息替换为:
fatal: --mirror is only supported when initializing a new workspace.
Either delete the .repo folder in this workspace, or initialize in another location.
如果这是相同的回购协议,但具有不同的 URL,则 this thread 提到:
If you've been able to clone all the gits you're almost there, just use
the insteadOf trick on the clients if the relative URLs aren't available
in the manifest you're mirroring.
[url "https://yourserver.example.com/"]
insteadOf = https://android.googlesource.com/
我们使用现有清单在本地启动了一个回购协议。
repo init -u ssh://ger-repository/my_project-manifests -m my_manifest.xml --mirror
现在,清单文件已更改。 运行 初始化命令不可能:
fatal: --mirror not supported on existing client
如何在不删除所有镜像文件夹并重新同步的情况下更新清单?
这可能是不可能的,考虑到 this patch 建议将错误消息替换为:
fatal: --mirror is only supported when initializing a new workspace.
Either delete the .repo folder in this workspace, or initialize in another location.
如果这是相同的回购协议,但具有不同的 URL,则 this thread 提到:
If you've been able to clone all the gits you're almost there, just use the insteadOf trick on the clients if the relative URLs aren't available in the manifest you're mirroring.
[url "https://yourserver.example.com/"]
insteadOf = https://android.googlesource.com/