Go Back   Android Forums > Android Development > Application Development
Application Development Dev lounge for our application developers.

test: Reply
 
LinkBack Thread Tools
Old September 25th, 2010, 10:45 AM   #1 (permalink)
New Member
Thread Author (OP)
 
Join Date: Sep 2010
Posts: 1
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Blush how to checkout a specified branch?

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.

Thanks.

Advertisements
zmjdx is offline  
Reply With Quote
sponsored links
Old November 5th, 2010, 03:06 AM   #2 (permalink)
New Member
 
Join Date: Nov 2010
Posts: 2
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

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 ;-)
karel1980 is offline  
Reply With Quote
Old November 20th, 2010, 09:01 AM   #3 (permalink)
New Member
 
Join Date: Nov 2010
Posts: 2
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
karel1980 is offline  
Reply With Quote
Reply
Tags
branch, eclair, git, repo, source code


Go Back   Android Forums > Android Development > Application Development
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 10:16 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.