• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps how to checkout a specified branch?

zmjdx

Lurker
Hi,I have download the android source code using repo:
mkdir mydroid
cd mydroid
repo init -u git://android.git.kernel.org/platform/manifest.git
repo sync

I am sure I have updated to the latest branch(froyo). But I don't want the latest branch.I need the 'eclair' branch. How can I fetch this branch based on the downloaded files?

I know that using "repo init -u git://android.git.kernel.org/platform/manifest.git -b eclair" can achieve this,but it will download files from server's repo again:o.

Thanks.
 
I'm having the exact same problem, this is what I do:
repo forall -c "git checkout eclair"

After that, when you do 'repo branches' it will list a number of
projects which do not have an 'eclair' branch.

Actually there are multiple eclair branches - it's not clear to me at this point
which is the right one to start from

remotes/korg/eclair
remotes/korg/eclair-passion-release
remotes/korg/eclair-release
remotes/korg/eclair-sholes-release
remotes/korg/eclair-sholes-release2

Anyway, after that, go to the project where you want to start hacking.
If you type gitk.
If you by any chance were planning on working an IME, let me know ;-)
 
Ignore my previous answer. You should use these commands:

repo init -u git://android.git.kernel.org/platform/manifest.git -b eclair
repo sync

Don't forget to create a topic branch before you start making changes.
repo start mybranch [proj1 proj2 ... projN]

See here for more information:
Using Repo and Git | Android Open Source
 
Back
Top Bottom