讨论Gerrit不算OT吧

33 views
Skip to first unread message

Zhao Quan

unread,
Jul 20, 2015, 5:37:29 AM7/20/15
to sh...@googlegroups.com
大家有在用Gerrit做code review吗?

各位觉得好用吗?

公司现在用这个,感觉根本没法用啊!!!!!

--------------------- 现象

1. 永无止境的 missing change ID

2. git pull origin release
没有冲突
push 就不让成功
git log
好多历史的commit 没有change id

1. 用 git pull origin release
有冲突,ok那解决吧。

解决后,git add
git commit

竟然出现有两个一样的commit被提交了两次
我也是醉了

再加上自动迁入的merge那个commit

好吧,果断没救了。

------------------------- 吐槽结束 ----------

说下我一般的处理,大家看看是不是我的问题

git clone ....... 初始拉代码
写一堆垃圾
git add  ....
git commit -m '一堆废话'
git pull origin release //有时也是其他分支名
git rebase -i // 如果发现拉下来的最近的一个commit没有chang id
git push origin release:refs/for/relase

然后,报一堆各种各样的错,说push不成功。 

吴江

unread,
Jul 20, 2015, 8:18:38 AM7/20/15
to sh...@googlegroups.com
总觉得push出问题是端口或者认证没有弄好。missing change id应该是本地的git hook没有安装。

试试 https://github.com/fbzhong/git-gerrit 看看是否有帮助
--
-- You received this message because you are subscribed to the Google Groups Shanghai Linux User Group group. To post to this group, send email to sh...@googlegroups.com. To unsubscribe from this group, send email to shlug+un...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/shlug?hl=zh-CN
---
您收到此邮件是因为您订阅了Google网上论坛上的“Shanghai Linux User Group”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到shlug+un...@googlegroups.com
要查看更多选项,请访问https://groups.google.com/d/optout


--
Jiang Wu(Mike)
GitHub: nouse
Skype: masterwujiang

Zhao Quan

unread,
Jul 20, 2015, 8:34:16 AM7/20/15
to sh...@googlegroups.com
谢谢, 端口和认证应该是没问题的。

git hook 我之后查下。
貌似之前google过,好多人也遇到missing change id的问题。

孑影

unread,
Jul 20, 2015, 9:00:15 AM7/20/15
to sh...@googlegroups.com
git-review 这个试试
#风起看云涌,叶落品人生#

Gareth

unread,
Jul 20, 2015, 9:10:08 AM7/20/15
to sh...@googlegroups.com
可以不启用change id的。。。


您收到此邮件是因为您订阅了 Google 网上论坛的“Shanghai Linux User Group”群组。

要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到shlug+un...@googlegroups.com
要查看更多选项,请访问 https://groups.google.com/d/optout



--
Gareth

Cloud Computing, OpenStack, Distributed Storage, Fitness, Basketball
OpenStack contributor, kun_huang@freenode
My promise: if you find any spelling or grammar mistakes in my email from Mar 1 2013, notify me 
and I'll donate $1 or ¥1 to an open organization you specify.

Zhao Quan

unread,
Jul 20, 2015, 9:30:49 PM7/20/15
to sh...@googlegroups.com
没得选,
原来不止我觉得这工具烂啊
哈哈

2015-07-20 20:59 GMT+08:00 孑影 <yhsp...@gmail.com>:
您收到此邮件是因为您订阅了 Google 网上论坛的“Shanghai Linux User Group”群组。

Zhao Quan

unread,
Jul 20, 2015, 9:31:10 PM7/20/15
to sh...@googlegroups.com
公司统一配置的,
没得改

kelx

unread,
Aug 14, 2015, 2:34:26 AM8/14/15
to sh...@googlegroups.com
需要把包含add changed Id  功能的commit-msg 放到.git/hooks/ 下。

git + gerrit 还是不错的。


------------------ 原始邮件 ------------------
发件人: "Zhao Quan";<felix...@gmail.com>;
发送时间: 2015年7月21日(星期二) 上午9:31
主题: Re: [shlug] 讨论Gerrit不算OT吧

Zhao Quan

unread,
Aug 17, 2015, 9:14:02 PM8/17/15
to sh...@googlegroups.com
已经在有了的。
但是,还是经常push ... refs/for/...报各种错。
Reply all
Reply to author
Forward
0 new messages