我们刚把杰瑞特安顿好了。有些项目能工作,有些不能。那些不能工作的项目失败了,就像这样:
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" existsgit 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和Gerrit2.8.1。我可以提交对其他项目的评论。
现在,我能在不起作用的项目之间找到的唯一共同之处是它们的名称中包含破折号("-")。
有谁能给我指个方向吗?搜索没有找到任何有用的东西,我对gerrit的了解已经到了极限。
谢谢。
发布于 2014-02-28 21:46:02
看起来git review正试图像这样推动
HEAD:refs/publish/master它应该像这样推
HEAD:refs/for/masterhttps://stackoverflow.com/questions/22047712
复制相似问题