我们刚刚在室内设置了gerrit。有些项目有效,有些则没有。那些不起作用的失败就像这样:
git review -v
2014-02-26 11:54:57.029764 Running: git log --color=never --oneline HEAD^1..HEAD
2014-02-26 11:54:57.032894 Running: git remote
2014-02-26 11:54:57.035826 Running: git branch -a --color=never
2014-02-26 11:54:57.040726 Running: git rev-parse --show-toplevel --git-dir
2014-02-26 11:54:57.043507 Running: git remote update gerrit
Fetching gerrit
2014-02-26 11:54:58.697639 Running: git rebase -i remotes/gerrit/master
2014-02-26 11:54:58.840323 Running: git reset --hard ORIG_HEAD
2014-02-26 11:54:58.850137 Running: git config --get color.ui
2014-02-26 11:54:58.854311 Running: git log --color=always --decorate --oneline HEAD --not remotes/gerrit/master --
2014-02-26 11:54:58.860093 Running: git branch --color=never
2014-02-26 11:54:58.864691 Running: git log HEAD^1..HEAD
Using local branch name "master" for the topic of the change submitted
2014-02-26 11:54:58.872208 Running: git push gerrit HEAD:refs/publish/master
fatal: One or more refs/for/ names blocks change upload
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
2014-02-26 11:55:00.029139 Running: git rev-parse --show-toplevel --git-dir
.gitview的内容:
[gerrit]
host=gitlab.company.net
project=api/core-services.git
已运行 git review -s
并配置了遥控器:
git remote -v
gerrit ssh://me@gitlab.company.net:29418/api/core-services.git (fetch)
gerrit ssh://me@gitlab.company.net:29418/api/core-services.git (push)
origin git@gitlab.company.net:api/core-services.git (fetch)
origin git@gitlab.company.net:api/core-services.git (push)
项目未显示在项目列表中(UI中也缺少):
ssh -p 29418 gitlab.company.net gerrit ls-projects | grep core-services
(returns nothing)
但是当我尝试添加项目时,它已经存在(从UI添加时也失败):
ssh -p 29418 gitlab.company.net gerrit create-project api/core-services.git
fatal: project "api/core-services" exists
git for-each-ref refs/for
什么都不返回。
我是gerrit的管理员。我可以推动原点。目前正在攻读master,因为它是一个新项目。没有其他分支。在本地运行ubuntu 13.10,git 1.8.3.2和git-review 1.21。 GitLab 6.4.3 3173626,git 1.8.4.4和服务器上的Gerrit 2.8.1。我可以提交其他项目的评论。
现在,我可以在不起作用的项目中找到的唯一常见的事情是它们在名称中包含短划线(“ - ”)。
有人能指出我在正确的方向吗?搜索没有发现任何有用的东西,我正处于我对萌芽知识的极限。
感谢。
答案 0 :(得分:1)
似乎git review试图像这样推送
HEAD:refs/publish/master
它应该像这样推动
HEAD:refs/for/master