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

Tran, Steven steven.tran2 at hp.com
Thu Apr 16 17:46:09 UTC 2015


Just thought I should add the solution in case others run into the same issue.  In my case I miss the following line in the configuration:
remote.gerrit.fetch=+refs/heads/*:refs/remotes/gerrit/*
Regards,
-Steven


From: Tran, Steven
Sent: Monday, January 26, 2015 9:10 PM
To: openstack-dev at lists.openstack.org
Subject: [openstack-dev] [all] need help with my first commit: The branch 'master' does not exist on the given remote 'gerrit'

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@review.openstack.org:29418/stackforge/congress.git
user.name=Steven Tran
user.email=steven.tran2 at hp.com<mailto:user.email=steven.tran2 at hp.com>
gitreview.username=stevenldt

$ git log
commit 5567b6e4622246ad86cdb9d6c0643427573e8d13
Author: Steven Tran <steven.tran2 at hp.com<mailto:steven.tran2 at hp.com>>
Date:   Mon Jan 26 17:19:38 2015 -0800

    Change-Id: Idc4abf32a7aa25231a7a6df511df998a0a3a50ad
    Implements: blueprint murano-driver

Thanks,
-Steven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20150416/950d01f6/attachment.html>


More information about the OpenStack-dev mailing list