views:

248

answers:

3

I've never used git before, but I'd like to download the android source code as I'm getting a crash in the 2.2 emulator and I'd like to see exactly where in the android source code it's crashing (so I can file a better bug report).

Edit A decent answer would include instructions on using git to download a specific repository. I'm on windows, but have installed Msysgit.

A: 

Have you checked this page?

When you do repo init, you must specify manifest, and if you want specific branch, after manifest you must add -b eclair for example.

Rabas
pretty obvious that he hasn't
sandis
A: 

I'm not entirely sure it's right, but I've done the following (in msysgit):

git clone git://android.git.kernel.org/platform/frameworks/base.git;h=refs/heads/froyo-release

Edit: I now notice that there are two tags - froyo & froyo-release. I'm not sure which one to ues, so I'm downloading them both. Can anyone tell me what the differences are?

Mark Ingram
+1  A: 

Well, as you've found out, the Android code is not stored in only one git repository. Instead they use a python script called repo to coordinate across many repositories. Rabas has the link to Google's instructions.

I've gotten that script to run under Windows using Cygwin. See the first few posts here. Remember to add the "-b froyo" to the repo init command.

(I don't know the difference between the tags. The repo script obscures most of that; it just deals in branch names.)

johnqcoder