m/master
is a special ref used by the repo
tool. Its full name is refs/remotes/m/master
. Although it uses refs/remotes
, it's not a real remote tracking branch like origin/master
. The repository doesn't have a remote named m
.
To initialize a repo
workspace, we use
repo init -u <url_to_manifest_repo> -b <branch> -m <path_to_manifest>
-b <branch>
instructs repo
to checkout <branch>
after cloning the manifest repository. If it's omitted, it defaults to -b master
. But the repo
tool creates refs/heads/default
in replacement of refs/heads/<branch>
. The master
also exists in your case, because master
does exist in the remote repository and has once been checked out or created in the local repository.
The repo
tool creates refs/remotes/m/<branch>
for every project defined in <path_to_manifest>
and for the manifest repository. In your case, it's m/master
. If you use -b foo
, it would be m/foo
. In the manifest repository, the value of m/<branch>
is refs/remotes/origin/<branch>
. In the project repositories, its value is refs/remotes/origin/<upstream>
or refs/remotes/origin/<revision>
. upstream
and revision
are defined in the manifest.
repo init
andrepo sync
to download the repositories?repo init
andrepo sync
default
is another branch and that's even the one currently checked out (that's whyHEAD
is pointing toward it)