批量创建Android源码仓库
修改manifest.xml文件
manifest.xml文件在源代码的.repo目录中
<manifest>
<remote fetch="ssh://localhost/mnt/GitRepository/ANDROID7.1" name="ssh" review="remote"/>
<remote fetch="/mnt/GitRepository/ANDROID7.1" name="local" review="local"/>
<default remote="local" revision="master" sync-j="8" />
</manifest>
此处添加了两个仓库员,默认使用第二个仓库源,可以参考这里
准备仓库
将源代码复制到/mnt/GitRepository/ANDROID7.1中,并运行python3 app.py --xml_path 你修改后xml文件地址 --repo_path /mnt/GitRepository/ANDROID7.1
此时你的源代码仓库已经建立好,运行命令
r