[openstack-dev] [all] need help with my first commit: The branch 'master' does not exist on the given remote 'gerrit'

Zaro zaro0508 at gmail.com
Tue Jan 27 14:03:00 UTC 2015


Hello.  I think there might be something wrong with git-review in your
env.  You might want try in another env, preferably linux if its handy.  I
noticed your origin is from github?  you should clone from here instead:
http://git.openstack.org/cgit/stackforge/congress

Here's what you should get when you run the commands to setup the remotes:

~/temp/congress$ git review -s
Creating a git remote called "gerrit" that maps to:
ssh://zaro0508@review.openstack.org:29418/stackforge/congress.git
~/temp/congress$ git remote -v
gerrit ssh://zaro0508@review.openstack.org:29418/stackforge/congress.git
(fetch)
gerrit ssh://zaro0508@review.openstack.org:29418/stackforge/congress.git
(push)
origin https://git.openstack.org/stackforge/congress (fetch)
origin https://git.openstack.org/stackforge/congress (push)



On Mon, Jan 26, 2015 at 9:09 PM, Tran, Steven <steven.tran2 at hp.com> wrote:

>  Hi,
>
>    Can someone point out what I miss that results in the following warning?
>
>
>
> $ git review
>
> The branch 'master' does not exist on the given remote 'gerrit'. If
>
> these changes are intended to start a new branch, re-run with the '-R'
>
> option enabled.
>
>
>
>
>
> I believe I shouldn’t do “git review -R” because it prompts me to submit
> multiple commits.
>
> I can do “git review -s” without any errors.
>
> I follow the steps at
> http://docs.openstack.org/infra/manual/developers.html#starting-a-change
>
> I’m using Cygwin.
>
>
>
> $ git status
>
> On branch bp/murano-driver
>
> nothing to commit, working directory clean
>
>
>
> $ git branch
>
> * bp/murano-driver
>
>   master
>
>
>
> $ git config --list
>
> core.repositoryformatversion=0
>
> core.filemode=true
>
> core.bare=false
>
> core.logallrefupdates=true
>
> core.ignorecase=true
>
> remote.origin.url=https://github.com/stackforge/congress.git
>
> remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
>
> branch.master.remote=origin
>
> branch.master.merge=refs/heads/master
>
> remote.gerrit.url=ssh://
> stevenldt at review.openstack.org:29418/stackforge/congress.git
>
> user.name=Steven Tran
>
> user.email=steven.tran2 at hp.com
>
> gitreview.username=stevenldt
>
>
>
> $ git log
>
> commit 5567b6e4622246ad86cdb9d6c0643427573e8d13
>
> Author: Steven Tran <steven.tran2 at hp.com>
>
> Date:   Mon Jan 26 17:19:38 2015 -0800
>
>
>
>     Change-Id: Idc4abf32a7aa25231a7a6df511df998a0a3a50ad
>
>     Implements: blueprint murano-driver
>
>
>
> Thanks,
>
> -Steven
>
> __________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20150127/7e388207/attachment.html>


More information about the OpenStack-dev mailing list