MocorDroid code download command is as follows. <branch> should be replaced with specific branch you wants. Remove the angle brackets when replacing.
Download branches are shown in Table1.
$ repo init -u gitosis@sprdroid.git.spreadtrum.com.cn:android/platform/manifest.git -b <branch>
Downloading code from Beijing git mirror by this command. See descriptions below to download from other git mirrors.
Use following commands to switch any branch in the current workspace.
$ repo forall -c 'git clean -df && git reset --hard HEAD' #clean your workspace
$ repo init -b <branch> #switch branch
$ repo sync
Attentions:
Adding group attribute in the manifest file of sprdroid4.3_3.4 branch. The project will not be automatically downloaded by repo which is placed in the group "notdefault". To download all projects in manifest file, repo init with the -g all option on the command line. To download projects belong to a specified group, for example flo group,repo init with the -g flo option on the command line. repo init with the -g <group name> option to switch according code. Attention: The -g option only takes effect in latest version of spreadtrum repo tool.
$ repo sync
Attention: IT is faster to download only the branch that specified in manifest file, repo sync with -d -c -q -j8 options on the command line.
Attention: If the format of fetch line like fetch=".." , no necessary to modify the manifest file.
<branch> should be replaced with specific branch you wants. Remove the angle brackets when replacing.
[--repo-url= ...] is optional. Remove the square brackets when using this option.
From Beijing to download code: $ repo init -u gitosis@sprdroid.git.spreadtrum.com.cn:android/platform/manifest.git -b <branch> $ repo sync -d -c -q From Shanghai Mirror to download code: $ repo init -u gitadmin@gitsrv01.spreadtrum.com:android/platform/manifest.git -b <branch> [--repo-url=gitadmin@gitsrv01.spreadtrum.com:tools/newrepo.git] $ repo sync -d -c -q