本文摘自repo init 时提示File “/root/....../.repo/repo/main.py“, line 79_小志1989的博客-优快云博客
我在工作中也遇到相同问题,特此记录。
摘要:
1、git clone https://gerrit-googlesource.lug.ustc.edu.cn/git-repo
2、cd git-repo/
3、cp repo ~/bin/ --将下载的repo执行文件放到root/bin目录下
4、chmod a+x ~/bin/repo
5、mkdir workspace
6、cd workspace/ ---在新建的目录下做repo操作,为了下载代码
7、尝试重新repo init:
repo init -u ssh://****************.git -m release.xml
8、同步代码
repo sync