On Monday, April 30, 2012 at 13:00 EDT,
Asi Mugrabi <
a...@nubosoftware.com> wrote:
> Oh, thank you for your response.
> The thing is I am not able to start a new branch in mirror.
> in base directory of mirror - repo start myteam/master
> platform/frameworks/base
> leads me to* fatal: 'start' requires a working directory*
> Do you know what to make of it?
> (of course doing the parallel not in mirror is successful - for example at
> local machine)
"repo start" is for creating topic branches in workspaces that have been
created with "repo init" and "repo sync". To create branches in the bare
gits found in your server you can either use "git branch" or create them
from elsewhere by using "git push". The latter is the typical case, as
it doesn't require server access. For example, to create a myteam/master
branch based on the master branch you can run this from a client workspace:
git push ssh://gerrithost/platform/frameworks/base \
origin/master:refs/heads/myteam/master'
(Obviously, replace gerrithost with whatever you need to log into Gerrit
on your server.)
When this has been done, update the manifest (again, don't change the
original master branch but create a new branch where you make your
changes) to point to myteam/master for the git in question. You can also
use a local manifest (.repo/local_manifest.xml) to modify the branch
attribute of one or more projects, but that quickly gets out of hand for
anything but very small teams that modify a very small set of gits.
--
Magnus Bäck
ba...@google.com