代码改变世界

[gerrit] Auto Add Reviewer When Push Code

2014-08-21 12:55  shaobin0604  阅读(788)  评论(0编辑  收藏  举报

1. ${PROJECT_ROOT}/.git/config 加入如下代码

[remote "review"]
url = ssh://${username}@codeserver.xxx.com:29418/${project_name}
push = HEAD:refs/for/${branch_name}%r=username1@gmail.com,r=username2@gmail.com,r=username3@gmail.com

2. 推送代码到 gerrit

$ git push review