昨天浏览阿伟(cwHuang)的博客,发现google最近把 repo 的 git repository 移到新的 Google code git service 上,虽然Android的源代码还是不能下载,但是依赖repo tool的其他工程可以用它了。
$ curl http://git-repo.googlecode.com/files/repo-1.12 > repo
$ chmod +x repo
注:将repo脚本中的REPO_URL='https://code.google.com/p/git-repo/' 改为 REPO_URL='http://code.google.com/p/git-repo'
$ mkdir Android-x86
$ cd Android-x86
$ repo init -u git://android-x86.git.sf.net/gitroot/android-x86/manifest.git -b gingerbread-x86
$ repo sync -j2