在我下載Android源代碼時,在最后一步調用repo sync,出現“fatal: '../platform/abi/cpp.git' does not appear to be a git repository”,后來在網上查了資料,參考http://zxquiet.iteye.com/blog/1470991和http://bbs.csdn.net/topics/380254094。
1、在存放android系統源代碼的目錄(也就是執行repo sync命令的目錄)下,有個.repo的隱藏目錄,用ls -a可以查看的到,進入該目錄:cd .repo;
2、打開.repo目錄下的manifest.xml文件(命令vim manifest.xml)並找到fetch屬性,在我的文件中顯示fetch="..",將fetch修改為 fetch="git://Android.git.linaro.org/"( 或則改為 git://git.omapzoom.org ),保存並退出;
3、繼續repo sync就可以下載了。