1. Check out our companion app, Forums for Android! Download from Google Play

how to checkout a specified branch?

Discussion in 'Application Development' started by zmjdx, Sep 25, 2010.

  1. zmjdx

    zmjdx New Member
    Thread Starter
    5

    Sep 25, 2010
    1
    0
    5
    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:eek:.

    Thanks.
     

    Advertisement

  2. karel1980

    karel1980 New Member
    5

    Nov 5, 2010
    2
    0
    5
    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 ;-)
     
  3. karel1980

    karel1980 New Member
    5

    Nov 5, 2010
    2
    0
    5
    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
     

Share This Page

Loading...