原文地址:http://php.webtutor.pl/en/2011/09/05/kernel-org-hacked-how-to-get-android-repo/
I will describe another way to get the Android source codes if youhadn’t already cloned it’s repo before kernel.org servers went down.
Prepare the environmentFirst, you need to download “repo” script from kernel.org my blog (please, enclose the URL address in double quotes):
curl "http://php.webtutor.pl/en/wp-content/uploads/2011/09/repo" > ~/bin/repochmod a+x ~/bin/repoPATH=~/bin:$PATH
Now, you can safely download the repository, like so:
mkdir WORKING_DIRECTORYcd WORKING_DIRECTORYrepo init -u git://codeaurora.org/platform/manifest.git -b gingerbreadrepo sync