I think that you cannot push to refs/for until the branch is
created. So, either create it through the WUI, or push the
starting point of the branch to refs/heads/tmp,
-Martin
--
Employee of Qualcomm Innovation Center, Inc. which is a
member of Code Aurora Forum
Hi Guys,
Hopefully a egregious oversight on my part, but how do you push a new branch using the command line:
[jenglert gerrit_training (tmp)]$ git push gerrit HEAD:refs/for/tmp
Total 0 (delta 0), reused 0 (delta 0)
To ssh://gerrit_host/gerrit_training.git
! [remote rejected] HEAD -> refs/for/tmp (branch tmp not found)
error: failed to push some refs to 'ssh://gerrit_host/gerrit_training.git'
I can create branches through the ui.
On Apr 23, 2013 6:23 AM, "Jason Lee" <wua...@gmail.com> wrote:
>
> > git push origin HEAD:refs/heads/newBranch
> was not work too, return a error message "can not create new references".
> so, My question is, How can i create a remote branch using Gerrit? i search the web but not found any solutions, what a pity.
Looks like you didn't assign the Create Reference access right [1].
[1] http://gerrit-documentation.googlecode.com/svn/Documentation/2.6/access-control.html#category_create
> --
> --
> To unsubscribe, email repo-discuss...@googlegroups.com
> More info at http://groups.google.com/group/repo-discuss?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>