Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1145879
  • 博文数量: 312
  • 博客积分: 12522
  • 博客等级: 上将
  • 技术积分: 3376
  • 用 户 组: 普通用户
  • 注册时间: 2008-02-27 18:35
文章分类

全部博文(312)

文章存档

2016年(3)

2015年(1)

2013年(1)

2012年(28)

2011年(101)

2010年(72)

2009年(13)

2008年(93)

分类: 项目管理

2011-04-02 16:17:16

Comments

edwin said...

Hi, I also follow Greg meiste's post to install Gerrit, but unfortunately, I'm not so lucky. In step 5 of Greg's post,
while executing:
java -jar gerrit-*.war --cat extra/GerritServer.properties_example >GerritServer.properties

the console always tells "error: no such file extra/GerritServer.properties_example", which means GerritServer.properties_example file cannot be found. Can you help me, where can I find this file? Thanks in advance.

My mail is : edwin.rong@gmail.com

Yann said in reply to edwin...

maybe you can try to find out what's in the war, because the name of that file might have changed.

$ java -jar gerrit*war -ls

might help you. Good luck.

edwin said in reply to Yann...

Hi Yann,
Thanks for your reply.

I also met another issue. When create a project in Gerrit with command "ssh localhost gerrit create-project -n test", it prompts"gerrit command is not found".
Could you give some hints?
Thanks again!

Edwin

Yann said in reply to edwin...

Edwin,

I've lost my work machine this week-end so it's a bit difficult for me to get some information. But, I think you should use gerrit's ssh port (adding '-p 29418') to your ssh command, unless you've configured your ssh_config to do it automatically, but it doesn't hurt to do the manual step first)

Rafael said...

Hi. Congratulations for this post. It is very useful. But there is something is not clear to me. Please, could you help me?

Why would we need to firstly push our working branch like "git push ssh://yann@codereview.local:29418/findlib my-review" and only after it we would be able to create a review using the magical refs, like
"git push ssh://yann@codereview.local:29418/findlib HEAD:refs/for/my-review" ?

I have tried to directly create a review for my working branch using the magical refs (by the documentation I thought it would also push a new branch) and it did not worked, it said the branch did not exist. So I followed your tutorial and then it worked fine.

Yann said in reply to Rafael...

That's the way gerrit works, it needs to have some reference code (the actual repository) before you can actually push the review to it. The review is just a set of commits that will be compared to the reference.

Rafael said...

Hi Yann.

Thanks a lot for the answer. But, please, could you clarify me the difference of the git push just indicating the branch name (it seems to me it only creates the branch for review, in git "remote" side) and the git push instruction using HEAD:refs/for/my-branch (it does not work for me if I do not perform previously a git push using just the branch name)? I am testing only in a local machine.

Rafael said in reply to Rafael...

Oh Yann, sorry for not posting it as the reply of your answer :-(

Once again, thanks a lot for this tutorial.


From:http://blog.cyberion.net/2009/11/my-take-on-installing-gerrit-git-code-review-tool-on-ubuntu.html

阅读(2571) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~